standar C++ and threads; any Poxis lib?

  • Thread starter =?ISO-8859-15?Q?Diego_Alonso_Gonz=E1lez?=
  • Start date
?

=?ISO-8859-15?Q?Diego_Alonso_Gonz=E1lez?=

I have been reading for a while and trying to make something I was asked.
Make a simple C++ library thread safe. I develop under Linux and the
library must be as Posix-fic as possible. Now the problem is the
standard C++ itself has no Threading whatsoever, windows platform deals
with its own threads' library, while in Linux... there are plenty.
due my case, what is the approach: what Linux C++ library has posix
threads. I heard they went into the kernel and many nuisances, but I
don't really know what to use and HOW!!
Diego Alonso
 
L

Lionel B

Diego said:
I have been reading for a while and trying to make something I
was asked. Make a simple C++ library thread safe. I develop under
Linux and the library must be as Posix-fic as possible.
Now the problem is the standard C++ itself has no Threading
whatsoever,

Correct; ergo, you are in the wrong newsgroup. Try asking in a
Linux/programming group.

Regards,
 
M

Markus Elfring

I have been reading for a while and trying to make something I was asked.

Does this article give you any ideas for your homework?
http://en.wikipedia.org/wiki/Thread_(computer_science)

Make a simple C++ library thread safe. I develop under Linux and the
library must be as Posix-fic as possible. Now the problem is the
standard C++ itself has no Threading whatsoever, windows platform deals
with its own threads' library, while in Linux... there are plenty.

The standardization is on the way...
http://pluralsight.com/blogs/hsutter/archive/2004/10/23/2972.aspx

due my case, what is the approach: what Linux C++ library has posix
threads. I heard they went into the kernel and many nuisances, but I
don't really know what to use and HOW!!

Did you try any portable classes that work with NPTL?

Regards,
Markus
 
K

KB

Diego said:
I have been reading for a while and trying to make something I was asked.
Make a simple C++ library thread safe. I develop under Linux and the
library must be as Posix-fic as possible. Now the problem is the
standard C++ itself has no Threading whatsoever, windows platform deals
with its own threads' library, while in Linux... there are plenty.
due my case, what is the approach: what Linux C++ library has posix
threads. I heard they went into the kernel and many nuisances, but I
don't really know what to use and HOW!!
Diego Alonso

As you've been able to ascertain, Standard C++ has no thread classes
associated with its library.

That being said, check out http://www.boost.org.

KB
 
G

Gianni Mariani

Markus said:
....



Did you try any portable classes that work with NPTL?

Austria C++ also has a "posix like" model (it's posix underneath on
Unix/Linux and uses Win32 API's on Windows) but the API is pure C++.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,197
Messages
2,571,038
Members
47,633
Latest member
BriannaLyk

Latest Threads

Top