Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 527 - Thread creation during deactivate_object
Summary: Thread creation during deactivate_object
Status: RESOLVED DUPLICATE of bug 801
Alias: None
Product: JacORB
Classification: Unclassified
Component: POA (show other bugs)
Version: 2.2
Hardware: PC Linux
: P2 normal
Assignee: Gerald Brose
URL:
Depends on:
Blocks:
 
Reported: 2004-10-21 16:39 UTC by Kevin Conner
Modified: 2010-03-04 14:55 UTC (History)
0 users

See Also:


Attachments
example workaround (1.93 KB, patch)
2004-10-21 16:39 UTC, Kevin Conner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Conner 2004-10-21 16:39:01 UTC
The deactiviation of an object causes Thread creation in AOM.remove.  Would it
be possible to use a thread pool instead of creating new threads?

A possible solution could be to have the RequestController provide a
notification mechanism (instead of a thread waiting on object completion) and
have the notification request work from the thread pool.

The attached patch uses a threadpool to prevent the thread creation but I don't
believe it is the best solution.
Comment 1 Kevin Conner 2004-10-21 16:39:37 UTC
Created attachment 90 [details]
example workaround
Comment 2 Nick Cross 2006-09-07 18:35:15 UTC
A possible issue with doing this is that when thread pool reaches the limit it
will block which I think breaks the spec which says that deactivate should
return immediately.
Comment 3 Kevin Conner 2006-09-07 20:49:33 UTC
It has been a while since I looked at this code but, IIRC, the whole point of
the thread/thread pool was to allow the deactivate call to return immediately. 
It allowed certain processing to be deferred until there were no references.

I did implement the notification mechanism and this was much cleaner.  The code
has probably moved on since that was done but I could try and dig it out and
update it.
Comment 4 Nick Cross 2008-11-13 17:10:24 UTC
Patch is available on 801 although still needs to be applied to CVS.

*** This bug has been marked as a duplicate of bug 801 ***
Comment 5 Jodi Davis 2010-03-04 14:54:06 UTC
Comment on attachment 90 [details]
example workaround

<a href="http://www.research-service.com/">research paper</a>
Comment 6 Jodi Davis 2010-03-04 14:55:50 UTC
Comment on attachment 90 [details]
example workaround

[url=http://www.research-service.com/]research paper[/url]