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 Oy Contact Name : Hu Rui Phone : +358-9-5495 6202 Fax : +358-9-512 4629 Email : [email protected] Date/Time in : 8-APR-1997 08:50:36 Entered by : Chuck Newman SPE center : MRO Category : unix OS Version : V3.2, V4.0 System H/W : Alpha Brief Description of Problem: ----------------------------- Date: 8-APR-1997 07:25:40.72 From: SMTP%"[email protected]" Subj: Pthreads function changes To: "[email protected]" <[email protected]> Hu writes: In Unix 4.0 B void *pthread_getspecific(pthread_key_t key); In Unix 3.2C int pthread_getspecific(pthread_key_t key, pthread_addr_t *value ); All my threads program are developed on Unix 3.2C now I update my server to 4.0B nothing works any more! How can I use the old function syntax? Is there any flag can be set in the compiler? Can you tell me where I can get a standard threads function specification? Can you tell me how I can use: 1 user level threads implementation. 2 kernel level threads implementation. 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 |
---|---|---|---|---|---|
3450.1 | Reply sent to [email protected] | HYDRA::NEWMAN | Chuck Newman, 508/467-5499 (DTN 297), MRO1-3/F26 | Tue Apr 08 1997 10:06 | 22 |
Hu -- When Digital first release a pthreads API, the only thing available was a draft version (i.e., the standard hadn't been finalized). This draft version is what was used in Digital UNIX V3.2. When Digital UNIX V4.0 came out, the standard was available and it was used in V4.0. Unfortunately, there were changes made to the standard (as you have noticed). While Digital encourages you to modify your code to use the newer API, you should be able to use your code which uses the draft version. To use the old version on V4.0, continue to build with the -threads qualifier. To use the new version on V4.0, build with the -pthread qualifier. Another change in Digital UNIX V4.0 is in the underlying threads structure of the kernel. On V4.0, user threads are scheduled onto kernel threads. I hope this helps. If you have further questions, please direct your reply to me and reference call number 1997-3450. Thank you. -- Chuck Newman |