Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 10-26-2005
Yunqiao Yin's Avatar
Yunqiao Yin Yunqiao Yin is offline
Registered User
 
Name: Yin Yunqiao
Organization: Baosteel
Project: real time process control system
 
Join Date: Jan 2004
Location: China
Posts: 56
Lightbulb About IceBox's thread reliability

I love IceBox's simplicity and powerful features.But when a uncatched exception occured(such as a bad pointer,or s segment fault,signal 11 etc...),all services will end up with the IceBox process. Even if I catch it and just exit the thread which the exception throws from,I find Ice run-time can not restart a new thread to keep the available thread pool size. So I suggest that IceBox can make the services or threads more independent with each other.
__________________
Yunqiao Yin
Baosteel
real-time process control
ICE中文论坛http://lingdoo.just.as 欢迎大家捧场
Reply With Quote
  #2 (permalink)  
Old 10-26-2005
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,055
I'm not really sure what you want the Ice core to do. If you terminate an Ice runtime thread without telling the core, its hardly suprising that it will not spawn another -- since the core probalby thinks that it still exists and is available for processing requests.

A more appropriate action may be, if you want to continue along with a buggy service that causes segfaults, would be to log the error and leave the processing thread running. In fact, this is exactly what occurs under Windows. You get an unknown exception on the client and the server keeps processing data -- because the access violation becomes a structured exception which is caught by catch(...).
Reply With Quote
  #3 (permalink)  
Old 11-01-2005
Yunqiao Yin's Avatar
Yunqiao Yin Yunqiao Yin is offline
Registered User
 
Name: Yin Yunqiao
Organization: Baosteel
Project: real time process control system
 
Join Date: Jan 2004
Location: China
Posts: 56
Quote:
Originally Posted by matthew
I'm not really sure what you want the Ice core to do. If you terminate an Ice runtime thread without telling the core, its hardly suprising that it will not spawn another -- since the core probalby thinks that it still exists and is available for processing requests.

A more appropriate action may be, if you want to continue along with a buggy service that causes segfaults, would be to log the error and leave the processing thread running. In fact, this is exactly what occurs under Windows. You get an unknown exception on the client and the server keeps processing data -- because the access violation becomes a structured exception which is caught by catch(...).
Thanks for your reply.I just want threads to be independent from each other,just like processes.Maybe it is impossible.
__________________
Yunqiao Yin
Baosteel
real-time process control
ICE中文论坛http://lingdoo.just.as 欢迎大家捧场
Reply With Quote
  #4 (permalink)  
Old 11-01-2005
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,055
Yes, that's not really possible. All threads co-exist in the same memory space so they can all overwrite each other and do other bad things if they are buggy.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
GridRegistry reliability sinofool Help Center 1 10-30-2006 11:55 PM
Reliability, Footprint & Portability prakashbuddhira Help Center 1 04-03-2006 06:36 AM
IceStorm "batch" reliability with Java? SteveWampler Help Center 3 10-27-2005 02:54 PM
a thread problem fw_csha Help Center 2 05-15-2005 06:41 AM
Ice::Thread and GUI with Qt catalin Help Center 5 09-08-2004 11:20 AM


All times are GMT -4. The time now is 07:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.