Mail Archives: djgpp/1997/08/28/11:08:59
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
-----------------------------------
- Raw text -