* Erroneous example in Guide to DECthread
@ 1997-01-09 4:51 Bo Kyoung Choi
0 siblings, 0 replies; only message in thread
From: Bo Kyoung Choi @ 1997-01-09 4:51 UTC (permalink / raw)
To: tru64-unix-managers
Hi managers !
I just upgraded OS to 4.0b from 3.2b (via 3.2g, 4.0a).
There are a big change in DECthread.
DEC fitted DECthread to POSIX syntax.
I had to change my multi-thread c-code.
I referred the manual in 4.0b documentation CD-ROM.
In the manual, there are only one example c-code.
I compiled it with 'cc -o prime prime.c -pthread'.
The results are such that;
----------------------------------------------------------
15:Pthread_detach bad status
: Error 0
15:Pthread_detach bad status
: Error 0
Thread terminated normally
15:Pthread_detach bad status
: Error 0
15:Pthread_detach bad status
: Error 0
15:Pthread_detach bad status
: Error 0
The list of 110 primes follows:
1, 3, 5, 7, 11, 13, 17, 19, 23,
29, 31, 37, 41, 43, 47, 53, 59, 61,
67, 71, 73, 79, 83, 89, 97, 101, 103,
107, 109, 113, 127, 131, 139, 137, 149, 151,
157, 163, 167, 173, 179, 181, 191, 193, 199,
197, 211, 223, 227, 229, 233, 239, 241, 251,
257, 263, 269, 271, 277, 281, 283, 293, 307,
311, 313, 317, 331, 337, 347, 349, 353, 359,
367, 373, 379, 383, 389, 397, 401, 409, 419,
421, 433, 431, 439, 443, 449, 457, 461, 463,
467, 479, 487, 491, 499, 503, 509, 521, 523,
541, 547, 563, 557, 569, 571, 577, 587, 593,
599, 601
----------------------------------------------------------
I think there are some mistake using pthread_detach() routine.
Any comment will be welcomed.
Thanks in advance.
Bo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-01-09 4:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-09 4:51 Erroneous example in Guide to DECthread Bo Kyoung Choi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox