multithreading under linux

multithreading under linux

Post by Torsten Edele » Sat, 25 Mar 2000 04:00:00



hello...

where can i find a documentation about multithreaded programming????

i've looked in the howto's and the "Linux Programmers Guide" but i
haven't found anything.

pse hlp

cu torsten

 
 
 

multithreading under linux

Post by Robert Lync » Sat, 25 Mar 2000 04:00:00



> hello...

> where can i find a documentation about multithreaded programming????

> i've looked in the howto's and the "Linux Programmers Guide" but i
> haven't found anything.

> pse hlp

> cu torsten

There's a chapter in the **2nd** Edition of "Beginning Linux
Programming" (Wrox), plus, of course a LOT of other good stuff.

HTH. Bob L.
--


 
 
 

multithreading under linux

Post by Peter Mortens » Mon, 27 Mar 2000 04:00:00




Quote:>hello...

>where can i find a documentation about multithreaded programming????

>i've looked in the howto's and the "Linux Programmers Guide" but i
>haven't found anything.

>pse hlp

>cu torsten

There is some useful high-level information in the Linux SMP HOWTO,
e.g. < http://www.veryComputer.com/;,

      Linux SMP HOWTO.
      Also at <http://www.veryComputer.com/; and
      <http://www.veryComputer.com/;.
      Includes: "Multi-threading has never been really popular in the
UN*X
        world though. For some reason, applications requiring
        multiple processes or threads, have mostly been written
        using fork(). Therefore, when using the thread approach, one
        runs into problems of incompatible (not thread-ready)
        libraries, compilers, and de*s.  GNU/Linux is no
        exception to this.",
        "Older C libraries are not thread-safe. It is very
        important that you" use GNU LibC (glibc), also known as
        libc6,
        "If two threads throw exceptions concurrently, the program
        will segfault.",
        "The GNU De* GDB as of version 4.18, should handle
threads
        correctly".
      For threads; "use the -D_REENTRANT define in the compiler
      command line. This is necessary to make certain error-
      handling functions work like the errno variable."

--

Regards,
Peter Mortensen

------------------------------------------------------------------------

Software Engineer, M.Sc.E.E.                 FAX: +45 63 15 20 40
Bioinformatics Application developer       Phone: +45 63 15 20 37
Protana A/S                                       +45 63 15 20 30 (SwB)
http://www.veryComputer.com/~pm/
DKK 14000 (US$ 2000) charge to accept unsolicited commercial messages.

 
 
 

multithreading under linux

Post by maarten van Dooting » Sat, 08 Apr 2000 04:00:00


Linux supports pthreads. There is lots of documentation about pthread on
the web.
There is one important difference with other pthread implementations for
other unix platforms: linux supports kernal threads.

> hello...

> where can i find a documentation about multithreaded programming????

> i've looked in the howto's and the "Linux Programmers Guide" but i
> haven't found anything.

> pse hlp

> cu torsten

 
 
 

multithreading under linux

Post by Chetan Ahuj » Mon, 10 Apr 2000 04:00:00



Quote:> Linux supports pthreads. There is lots of documentation about pthread on
> the web.
> There is one important difference with other pthread implementations for
> other unix platforms: linux supports kernal threads.

  Well... in a manner of speaking. Linux kernel "emulates" threads
  using full fledged processes. So if you start 4 threads in your
  programs they would show up as four different processes in the
  process table.

   Chetan


>> hello...

>> where can i find a documentation about multithreaded programming????

>> i've looked in the howto's and the "Linux Programmers Guide" but i
>> haven't found anything.

>> pse hlp

>> cu torsten