Forum: C
May 14th, 2008, 8:19 AM
|
|
Replies: 3
Views: 325
|
Forum: C
May 8th, 2008, 8:59 AM
|
|
Replies: 3
Views: 436
|
Forum: C
May 8th, 2008, 8:03 AM
|
|
Replies: 3
Views: 436
|
Forum: C
May 7th, 2008, 12:27 PM
|
|
Replies: 0
Views: 317
nice for pthreads? (linux)
With Linux kernel 2.6
nice() called inside a pthread
affects only the calling thread
or all threads of the process??
(I guess in POSIX it affects the process, but Linux is not fully POSIX compliant...
|
Forum: C
May 7th, 2008, 9:39 AM
|
|
Replies: 0
Views: 291
|
Forum: C
May 5th, 2008, 9:13 AM
|
|
Replies: 1
Views: 209
pthread safe library functions?
In linux using pthreads
When I call a whatever usual function like for instance:
thread 1
a=div(b,c).rem //a = div remainder of b div c
thread 2
x=div(y,z).rem
so I call the same function on...
|
Forum: C
May 5th, 2008, 8:29 AM
|
|
Replies: 1
Views: 196
sig_atomic_t to avoid mutex/critical sections
On linux using pthreads, if I have a 2-bytes variable x shared by pthreads used only in the following ways:
(1)
x=value;
(2) or (separately)
if (x==value) {do something (not with x)}
(3) or...
|