Solved

tnreading in c++

Posted on 2002-05-16
8
207 Views
Last Modified: 2010-04-02
What are the various ways of doing user level Thread programming in C++ on Linux operating system?
0
Comment
Question by:kalpanas
8 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 7016015
There are basically two ways to do that:

LinuxThreads http://pauillac.inria.fr/~xleroy/linuxthreads/

and

Posix Threads http://centaurus.cs.umass.edu/~wagner/threads_html/tutorial.html
0
 
LVL 30

Expert Comment

by:Axter
ID: 7016103
I recommend you use Posix Threads.  It's more portable.
0
 
LVL 86

Expert Comment

by:jkr
ID: 7016124
>>I recommend you use Posix Threads

And I support that recommendation :o)
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:MDarling
ID: 7019499
Zthread...
0
 
LVL 3

Expert Comment

by:MDarling
ID: 7019502
0
 
LVL 9

Expert Comment

by:jasonclarke
ID: 7021935
Possibly better still is to use a decent wrapper, like this one:

http://www.boost.org/libs/thread/doc/index.html

Not all platforms (Windows in particular) support Posix threading - this gets around that problem.

It also presents a higher level interface (C++ at least) than the standard threading interface.
0
 
LVL 11

Expert Comment

by:griessh
ID: 7178781
Dear kalpanas

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "jkr"

comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/


PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7199791
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question