This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[1.7] pthread_mutex_lock/pthread_mutex_unlock strange blocking problem


Hello,

Sometimes pthread_mutex_lock ou pthread_mutex_unlock block.

In order to reproduce the problem, I have made a test application
(test.c) who always block

$ gcc test.c -o test
$ ./test
thread id=1
after pthread_create 1
after pthread_create 2
thread id=2
thread id=3
after pthread_create 3
after pthread_create 4
thread id=4
thread id=5
after pthread_create 5
thread id=6
after pthread_create 6
after pthread_create 7

The application can create 1,2,3 threads or many more before blocking.

--
Thomas

Attachment: test.c
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]