[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference clt::cma

Title:DECthreads Conference
Moderator:PTHRED::MARYSTEON
Created:Mon May 14 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1553
Total number of notes:9541

1468.0. "pthread_attr_setstacksize ? what is "system-imposed limit"" by STAR::SWEENEY () Wed Jan 22 1997 15:37

T.RTitleUserPersonal
Name
DateLines
1468.1There isn't one, at the moment.WTFN::SCALESDespair is appropriate and inevitable.Wed Jan 22 1997 16:1618
1468.2looks like a holeVAXCPU::michaudJeff Michaud - ObjectBrokerWed Jan 22 1997 18:0410
1468.3Not a hole, a portable way of doing something non-portable.WTFN::SCALESDespair is appropriate and inevitable.Thu Jan 23 1997 13:4919
1468.4Related issues, but TWO distinct issuesVAXCPU::michaudJeff Michaud - ObjectBrokerThu Jan 23 1997 16:3315
1468.5One issue: portable interfaces for non-portable functionsWTFN::SCALESDespair is appropriate and inevitable.Fri Jan 24 1997 10:5923
At the risk of putting in one too many replies... :-)

The basic fact is that stack usage is platform-specific.  Thus, specifying
stack sizes must be done in a platform-specific fashion.  Thus, you are going
to have platform-specific code if you try to set the stack size explicitly
(unless the trick of doing do in terms of the default size is sufficient).
Therefore, it doesn't matter that there is no portable way of getting the
maximum size.  (In point of fact, I expect that the overwhelming majority of
vendors will not impose an explicit maximum -- they will do like we do and
_try_ to create what you ask for, and if there's "room" you'll get it...)

As for the "minimum stack size", I believe that limit is only imposed on
user-allocated stacks (provided via the "stackaddr" attribute).  That minimum
doesn't specifically apply to normally created thread stacks.  (BTW, don't
use the "stackaddr" attribute...talk about non-portable! It's an
abomination...but I won't go into that here.)

So, I assert that it's all the same issue.  There are various cases were
POSIX provides portable interfaces which cannot be used in a portable manner.


				Webb

1468.6SMURF::DENHAMDigital UNIX KernelFri Jan 24 1997 17:134
    Just as a tangent -- Solaris threads probably don't worry too much
    about stack sizes becaue they can dynamically grow their stacks.
    We can't until the Steel release. So we can't be as sloppy
    as they can until then.