Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Stack size in DCE pthreads ?
@ 1994-11-23 20:28 Pascal Meheut
  1994-11-24  9:25 ` Christopher Costello
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Pascal Meheut @ 1994-11-23 20:28 UTC (permalink / raw)


How can I change the size of the stack in threads created by the 
rpc_server_listen function ?
I know how to change the stack size on threads created by pthread_create, but
I cannot change the pthread_attr_default variable using 
pthread_attr_setstacksize. I'm even not  sure it is used by rpc_server_listen.

By the way, I've found a lot of things undocumented in DCE, like using 
the xds/xom interface, writing an ACL manager...

I'm mainly using AIX DCE documentation. Is there any better documentation ?
--


					Pascal Meheut
					pascal@cnam.cnam.fr


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Stack size in DCE pthreads ?
  1994-11-23 20:28 Stack size in DCE pthreads ? Pascal Meheut
@ 1994-11-24  9:25 ` Christopher Costello
  1994-11-24  9:32 ` Peter Knight,B83 G19,644108,
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Christopher Costello @ 1994-11-24  9:25 UTC (permalink / raw)


Pascal Meheut (pascal@cnam.cnam.fr) wrote:

[SNIP]
: By the way, I've found a lot of things undocumented in DCE, like using 
: the xds/xom interface, writing an ACL manager...

: I'm mainly using AIX DCE documentation. Is there any better documentation ?
: --

In the OSF version of the DCE documentation, the XDS/XOM interface is 
covered in the Application Development Guide and Reference.


: 					Pascal Meheut
: 					pascal@cnam.cnam.fr

--
+-----------------------------------------------------------------------+
| Christopher Costello                                                  |
| SNI BU BA NM 123         SIEMENS        Tel:    +49 89 636 40367      |
| Carl Wery Str. 22        =======        Fax:    +49 89 636 45860      |
| 81739 Muenchen           NIXDORF        E-mail: C.Costello@mch.sni.de |
| Germany                                                               |
+-----------------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Stack size in DCE pthreads ?
  1994-11-23 20:28 Stack size in DCE pthreads ? Pascal Meheut
  1994-11-24  9:25 ` Christopher Costello
@ 1994-11-24  9:32 ` Peter Knight,B83 G19,644108,
  1994-11-25  9:19 ` Toshiyuki
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Peter Knight,B83 G19,644108, @ 1994-11-24  9:32 UTC (permalink / raw)


In article kub@sheckley.cnam.fr, pascal@cnam.cnam.fr (Pascal Meheut) writes:
>How can I change the size of the stack in threads created by the 
>rpc_server_listen function ?
>I know how to change the stack size on threads created by pthread_create, but
>I cannot change the pthread_attr_default variable using 
>pthread_attr_setstacksize. I'm even not  sure it is used by rpc_server_listen.
>
>By the way, I've found a lot of things undocumented in DCE, like using 
>the xds/xom interface, writing an ACL manager...
>
>I'm mainly using AIX DCE documentation. Is there any better documentation ?
>--
>
>
>					Pascal Meheut
>					pascal@cnam.cnam.fr

Try the rpc_mgmt_set_server_stack_size() function.

The xds & xom interfaces are documented by X/Open, hence the leading
'x' in their names.

For DCE documentation try these

Introduction to OSF/DCE, author: OSF, Pub: Prentice Hall, New Jersey.
OSF/DCE Application Development Reference, author: OSF, Pub: Prentice Hall,
	New Jersey

+ others in that series.

Guide to Writing DCE Applications, John Shirley, Pub: O'Reilly & 
	Associates, Inc, Sebastopol (!), CA.

+ other in that series.

Have you tried the info utility on AIX?  All kinds of wonderous searching
patterns are possible.  If all suppliers would provide something similar...

Regards

Peter Knight

BT Labs, Martlesham Heath.

TEL + 44 1473 644108
FAX + 44 1473 649146


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Stack size in DCE pthreads ?
  1994-11-23 20:28 Stack size in DCE pthreads ? Pascal Meheut
  1994-11-24  9:25 ` Christopher Costello
  1994-11-24  9:32 ` Peter Knight,B83 G19,644108,
@ 1994-11-25  9:19 ` Toshiyuki
  1994-11-25 13:26 ` Finn Andresen
  1994-11-26 20:47 ` Rich Salz
  4 siblings, 0 replies; 6+ messages in thread
From: Toshiyuki @ 1994-11-25  9:19 UTC (permalink / raw)


Pascal> How can I change the size of the stack in threads created by the 
Pascal> rpc_server_listen function ?

You can change stack size using rpc_mgmt_set_server_stack_size()
before calling rpc_server_listen().

--
ITO Toshiyuki


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Stack size in DCE pthreads ?
  1994-11-23 20:28 Stack size in DCE pthreads ? Pascal Meheut
                   ` (2 preceding siblings ...)
  1994-11-25  9:19 ` Toshiyuki
@ 1994-11-25 13:26 ` Finn Andresen
  1994-11-26 20:47 ` Rich Salz
  4 siblings, 0 replies; 6+ messages in thread
From: Finn Andresen @ 1994-11-25 13:26 UTC (permalink / raw)


Pascal Meheut (pascal@cnam.cnam.fr) wrote:
: How can I change the size of the stack in threads created by the 
: rpc_server_listen function ?
: I know how to change the stack size on threads created by pthread_create, but
: I cannot change the pthread_attr_default variable using 
: pthread_attr_setstacksize. I'm even not  sure it is used by rpc_server_listen.


On OSF/1 you can use rpc_mgmt_set_server_stack_size() may be this is also
available under AIX.

  #include <dce/rpc.h>

  void rpc_mgmt_set_server_stack_size(
          unsigned32 thread_stack_size,
          unsigned32 *status);

Regards,

Finn Andresen


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Stack size in DCE pthreads ?
  1994-11-23 20:28 Stack size in DCE pthreads ? Pascal Meheut
                   ` (3 preceding siblings ...)
  1994-11-25 13:26 ` Finn Andresen
@ 1994-11-26 20:47 ` Rich Salz
  4 siblings, 0 replies; 6+ messages in thread
From: Rich Salz @ 1994-11-26 20:47 UTC (permalink / raw)


In <3b08lo$kub@sheckley.cnam.fr> pascal@cnam.cnam.fr (Pascal Meheut) writes:
>How can I change the size of the stack in threads created by the 
>rpc_server_listen function ?

From dce/rpc.idl:
    /*
     * R P C _ M G M T _ S E T _ S E R V E R _ S T A C K _ S I Z E
     *
     * Set the value that the RPC runtime is to use in specifying the
     * the thread stack size when creating call threads. This value will
     * be applied to all threads created for the server.
     */
    void rpc_mgmt_set_server_stack_size
    (
	[in]        unsigned32              thread_stack_size,
	[out]       unsigned32              *status
		/*  ^^^^^^^^^^ Sigh; should be error_status_t --r$ */
    );
This should also be documented in your DCE documentation.

>By the way, I've found a lot of things undocumented in DCE, like using 
>the xds/xom interface, writing an ACL manager...
>I'm mainly using AIX DCE documentation. Is there any better documentation ?

Apparently. :-)  It seems that the AIX documentation omitted parts of
the application development guide books that OSF provides.  At least
those two items are described in the DevGuide books.  Writing an ACL
manager is hard, and poorly described in the 1.0.3 books; the jobs gets
*MUCH* easier in 1.1.  Hal Lockhart's book provides the most current detail
about how to write an ACL manager that I've seen so far.

You might contact your IBM rep and see if they have more docs avilable.
You can contact <direct@osf.org> to purchase the "reference set", and
they're also published by Prentice-Hall.
	/r$


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1994-11-26 20:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-23 20:28 Stack size in DCE pthreads ? Pascal Meheut
1994-11-24  9:25 ` Christopher Costello
1994-11-24  9:32 ` Peter Knight,B83 G19,644108,
1994-11-25  9:19 ` Toshiyuki
1994-11-25 13:26 ` Finn Andresen
1994-11-26 20:47 ` Rich Salz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox