Title: | Alpha Developer Support |
Notice: | [email protected], 800-332-4786 |
Moderator: | HYDRA::SYSTEM |
Created: | Mon Jun 06 1994 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3722 |
Total number of notes: | 11359 |
Company Name : Scandinavian Softline Technology Contact Name : Hu Rui Phone : +358-9-5495 6202 Fax : +358-9-512 4629 Email : [email protected] Date/Time in : 24-APR-1997 14:36:42 Entered by : Jeff Donsbach SPE center : MRO Category : Unix OS Version : 4.0B System H/W : AlphaStation Brief Description of Problem: ----------------------------- This appears to be a brand new issue from Hu, so I'm opening a new call. -------- Date: 24-APR-1997 07:57:45.43 From: SMTP%"[email protected]" Subj: threads and rpcgen (Unix 4.0 B) To: "[email protected]" <[email protected]> CC: Kari Kailamaki <[email protected]> ------------------ $man svc_run you have svc_run() [Not Thread Safe] This routine waits for RPC requests to arrive, and calls the appropriate service procedure using svc_getreq() when one arrives. This procedure is usually waiting for a select() system call to return. What does [Not Thread Safe] mean? I am using rpcgen make multi-threads Oracle database server. What is the rule that you can mix RPC and threads safely together? Regards. _________________________________________________ Hu Rui (Oracle Support No. 14428) R&D, SMS Unit (Digital ASAP Support No. A60205) Scandinavian Softline Technology Oy Tulkinkuja 3 02600 ESPOO Finland Tel +358-9-5495 6202 Fax +358-9-512 4629 Home Tel +358-9-2789426 Internet [email protected] http://www.softline.fi/ _________________________________________________
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
3539.1 | reply sent | HYDRA::DONSBACH | Jeff Donsbach, Software Partner Engineering, DTN 297-6862 | Thu Apr 24 1997 14:50 | 23 |
Date: 24-APR-1997 14:44:46.87 From: HYDRA::AXPDEVELOPER "[email protected]" Subj: RE: threads and rpcgen (Unix 4.0 B) To: SMTP%"[email protected]" CC: AXPDEVELOPER ------------- Hu, > What does [Not Thread Safe] mean? > I am using rpcgen make multi-threads Oracle database server. What is > the rule that you can mix RPC and threads safely together? In the case of the "svc_run()" function, it means that you should not call this function from more than one thread or nasty things could happen. In your case, I would design things so that your main thread calls svc_run() and then hands off the processing of the actual RPC requests to child threads to do the real work of processing the request. Then main thread then goes back to waiting for more requests to come across the wire..... Regards, Alpha Developer Support |