Jonathan Chen wrote:
> Yesterday marked my first attempt at mixing poll() with pthreads.
> Needless to say, things did not work out the way I wanted them to. So, I
> began the task of finding out the behaviors of various OSes to see if my
> code would run fine on them. For your reference and amu
"Dimitar V. Peikov" wrote:
>
> I've tryed to make some example on using pthreads and semaphores and found
> that process became blocked if inside of critical section use wait, uwait or
> nanowait finctions. In the attached file if change line : (#if 0) to (#if 1)
> the program hangs. I've tested
Iani Brankov wrote:
>
> Matthew Dillon wrote:
>
> [snip]
>
> > At your csh prompt type 'limit'. If you are using bash type 'ulimit -a'.
> >
> > When I compile and run your program it works fine on my box. I tried
> > compiling it -O0, -O1, and -O2.
> >
> > % cc x.c -o x -O0
>
> First, I must say that this all concernes quite current
> CURRENT (Jan 9 or so). I don't know if the same holds for
> older versions.
>
> I'm kind of puzzled.
>
> I've a simple sample program (see at the bottom). It creates 10
> threads with start function start_my_thread(), and then runs the
4 matches
Mail list logo