Discussion:
[omniORB] Stack size in CORBA(omniORB) threads
radamkie at kdm.pl ()
2006-07-04 21:53:28 UTC
Permalink
We implement one application using omniORB on Linux RH Enterprise 3 Platform
where the "ulimit" command with option -s sets maximal stack size per thread.
When own omni_threads are created, we mark, that default thread always
on start takes maximal stack size. So, by creating own threads we have
to use creating properities to change taken stack size. But the problem
is by threads in omniORB, which seem to take default value of stak size
(maximal).
Is there any method, way etc. to change stack size taken by creating
omniORB threads?

Cheers,
Radek
Luke Deller
2006-07-05 06:53:59 UTC
Permalink
Hi Radek,
Post by radamkie at kdm.pl ()
Is there any method, way etc. to change stack size taken by creating
omniORB threads?
I'm not aware of any such setting in omniORB itself. However you can
change the default stack size for threads created by the omnithread
library (which is used by omniORB).

Here's a snippet from omnithread.h:

class omni_thread {
...
static void stacksize(unsigned long sz);
static unsigned long stacksize();
// Use this value as the stack size when spawning a new thread.
// The default value (0) means that the thread library default
is
// to be used.
...
}

Regards,
Luke.


**********************************************************************************************

Important Note
This email (including any attachments) contains information which is
confidential and may be subject to legal privilege. If you are not
the intended recipient you must not use, distribute or copy this
email. If you have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of XPlan Technology.

It is the duty of the recipient to virus scan and otherwise test the
information provided before loading onto any computer system.
Xplan Technology does not warrant that the
information is free of a virus or any other defect or error.
**********************************************************************************************
Loading...