[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Multi-threaded code



>>>>> "Will" == Will Newton <will [at] misconception.org.uk> writes:

    Will> On Thursday 01 Aug 2002 3:08 pm, José Luis Gómez Dans wrote:
    >> I am in the need of multi-threading some of my code. Ideally,
    >> the code should be portable (Solaris,1.0,Linux,0.9,SGI,0.2,
    >> where the numbers indicate the relative importance of each OS
    >> :D). Is there a simple document on how to do this, and how to
    >> choose a way of porting it? It looks like pthreads might be of
    >> use, but I am not aware of anything else :-)

    Will> Yes, pthreads is the way to go. Solaris used to use threads,
    Will> and IRIX sprocs, but both have pthreads in up-to-date
    Will> versions.

    Will> Have fun, threaded code is always exciting. :-)


Do you know of any decent discussions and/or examples of the problems
involved with threaded code and potential solutions?

I tend to just fork() code in my current code.

Most of my code is written in Perl, and I've not yet played with the
improved threading implementation there yet, but I'd like to get my C
to a more interesting standard.

Whilst I look at it, has any one got any good articles on writing
portable C, or at least a list of Evil Things ? :-)

Cheers.

Baz.

-- 
Barrie J. Bremner
baz-sheflug [at] barriebremner.com      http://barriebremner.com/


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.