Hi, I am David Trallero. I am trying to make some multitasking in Linux. Some years ago I said that threads does not work properly in Linux, now I need to repeat the same. Your libreary works better than pthread (default) library, but ...
THREADS: 3 1-THREAD: stopped on accept (with block sokect) 2-THREAD: stopped on select (with block sokect) 0-THREAD (MAIN): Write on a socket, who is on 2-THREAD SELECT LIST. EFFECTS: 2-THREAD DO NOT WAKE UP --- AFTER THAT, I CLOSE THE SOCKET IN WHICH ACCEPT IS WAITING. 1-THREAD DO NOT WAKE UP. I have change my library functions to pth_* functions ... and it works better, but not works at all. I think that you dont caught the functions: send recv close(fd) (when fd is a socket) --- Almost all times, if I dont make a pth_sleep, the program does not work because threads are never execute. --- Your library has no function to destroy a thread best regards, DTM P.D: I can send you my library. It is very small and portable. It works under Windows very well, and now almost in Linux. It's very easy to undertand, and you can use it to depurate your library. IDEA: could you execute in each OS given slice time a different thread? (ITS because I program without OS called, and I need REAL MULTIPROCESSING). --- I can help you to develop your library if you want. _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp ______________________________________________________________________ GNU Portable Threads (Pth) http://www.gnu.org/software/pth/ User Support Mailing List [EMAIL PROTECTED] Automated List Manager (Majordomo) [EMAIL PROTECTED]