Message-ID: <34059152.4F0E@no.spam.mcs.nl> Date: Thu, 28 Aug 1997 16:55:14 +0200 From: Peter Zijlstra Reply-To: peter AT no DOT spam DOT mcs DOT nl Organization: Zembla MIME-Version: 1.0 To: DJGPP mailing list Subject: Re: Pthreads and lwp packages, looking for response from their users. References: <340438EA DOT 303D AT chem DOT uw DOT edu DOT pl> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Precedence: bulk Wojciech Galazka wrote: > > Hi, > > I'm trying to figure out how pthreads and lwp (two independent > threading packages) can be used to provide so to say "multitasking" > within a program (== multithreading). I've looked at the sources, > even compiled lwp example files and stopped at this point. > I wonder if anyone knows of any more complex examples for these > packages so that I could learn how they can be used. > I've also played with a lwp-based enhanced library (sorry, can't recall > its name at this moment) It provides semaphores, messages and the like > but requires C++ to use them. 'pdmlwp01.zip' if i´m correct :) and no, it does not require C++ to use semaphores and messages and the like. All is supported for bare C but C++ wrapper-classes are provided which make life a lot easier. BTW.. if a C++ class can do it a piece of C code is bound to be able to do the same. Sometimes a bit clumsier, sometimes not (this is mainly a design thingy). So one could allways read through the classes and write whatever one wants to be done in C. ----------------------------------- Peter Zijlstra aka. The Mage / ZeMBLA - Main Coder E-Mail: peter at mcs dot nl -----------------------------------