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
Received on Wed Jan 08 1997 - 06:00:55 NZDT