Re: pthread problem

2010-02-12 Thread Christopher Faylor
On Fri, Feb 05, 2010 at 02:00:07PM -0500, Christopher Faylor wrote: >On Sat, Feb 06, 2010 at 12:13:59AM +0530, Gaurav Sachdeva wrote: >>Hi, >> >>I have written following code - >> >>#include >> >>void *thread_func(void *data) >>{ >> printf("In thread\n"); >> pthread_exit(NULL); >>} >> >>int main(

Re: pthread problem

2010-02-05 Thread Christopher Faylor
On Sat, Feb 06, 2010 at 12:13:59AM +0530, Gaurav Sachdeva wrote: >Hi, > >I have written following code - > >#include > >void *thread_func(void *data) >{ > printf("In thread\n"); > pthread_exit(NULL); >} > >int main() >{ > pthread_t mythread; > int rc; > > rc = pthread_create(&mythread, NULL, t

pthread problem

2010-02-05 Thread Gaurav Sachdeva
Hi, I have written following code - #include void *thread_func(void *data) { printf("In thread\n"); pthread_exit(NULL); } int main() { pthread_t mythread; int rc; rc = pthread_create(&mythread, NULL, thread_func, NULL); if (rc){ printf("ERROR; return code from pthread_crea

Re: Oct. pthread problem seems still there

2004-11-22 Thread Christopher Faylor
On Mon, Nov 22, 2004 at 10:03:25AM -0800, Peter Xiaochuan Huang wrote: >Sorry that I can not offer a simplified test case. I >hope it will help people who already handled the >problem to look into it again. AFAIK, no one has "already handled" the problem. A test case would be required. Sorry. >

Oct. pthread problem seems still there

2004-11-22 Thread Peter Xiaochuan Huang
I am using pthread extensively in my program and I am getting problem from pthread similar to those posted in October in this same mailing list. The problems can described as below: 1. It seems that main execution thread randomly hangs while the dispatched threads are joined or collected. It happ

Re: pthread problem with latest cygwin dll snapshot

2003-10-29 Thread Arash Partow
Hi Thomas, I'll try doing as you have suggested, I'll rebuild the dll and see how things turn out from there. One thing I forgot to mention in my previous e- mail, was that when you run multiple instances of ThreadTest, when they start crashing, the Error Windows that pop-up all have the same "ref

Re: pthread problem with latest cygwin dll snapshot

2003-10-29 Thread Thomas Pfaff
Hi Arash, i downloaded TaskInfo, installed it on a 2,5 GHz P4 W2000 box, tried free RAM (slow and fast) and your Test did not crash. I rebuilded the cygwin DLL while your test was running, still no crash. If you are interested to dig a little deeper download the snapshot source and build your

Re: pthread problem with latest cygwin dll snapshot

2003-10-28 Thread Arash Partow
Greetings to Thomas and all others involved in cygwin pthreads implementation, I made the changes that you advised, however the ThreadTest still crashes, I also put some text to standard out when the result of pthread_create is not equal to 0, the text does not show which leads to believe me the pr

Re: pthread problem with latest cygwin dll snapshot

2003-10-28 Thread Thomas Pfaff
Arash Partow wrote: Greetings to Thomas and all others involved in cygwin pthreads implementation, I've downloaded the snapshots of cygwin1.dll (cygwin1-20031025.dll.bz2 and cygwin1-20031027.dll.bz2), I think the prior is the one where Thomas made changes and in the latter Corinna made changes to s

pthread problem with latest cygwin dll snapshot

2003-10-27 Thread Arash Partow
Greetings to Thomas and all others involved in cygwin pthreads implementation, I've downloaded the snapshots of cygwin1.dll (cygwin1-20031025.dll.bz2 and cygwin1-20031027.dll.bz2), I think the prior is the one where Thomas made changes and in the latter Corinna made changes to semaphores which I do