From: mka AT redes DOT int DOT com DOT mx (Michael Anderson) Subject: Thread-safeness in cygwin32 20 Nov 1997 13:25:32 -0800 Message-ID: <34735B8C.B085BBD.cygnus.gnu-win32@redes.int.com.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com I'm using B18 to port a multi-process, multi-threaded project, which seems to work well on linux and solaris 2.5. The project is a communications processor, middleware, which invokes multiple instances of essentially the same process (doing different tasks), each process is multi-threaded with some identical and some different threads. On B18, processes die erractically in ways that suggest race conditions and thread data curruption. Additionally, the identical process instances seem to affect each other, one process causing the death of another. Can anyone make an informed, definitive statement on the thread-safeness of B18? Are threads sharing code or data in an unsafe manner? Are processes sharing code or data (perhaps through cygwin.dll) in an unsafe manner? I've seen some posts in the archives suggesting in a general way that cygwin.dll functions and functions in newlib may not be thread-safe - does anyone know for sure? Are there lists of functions to avoid or other workarounds? Or do I just have buggy code .... Thanks, -- Mike Anderson mka AT redes DOT int DOT com DOT mx Guanajuato, GTO, Mexico - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".