Solved

tnreading in c++

Posted on 2002-05-16
8
177 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
 
LVL 3

Expert Comment

by:MDarling
ID: 7019499
Zthread...
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now