Click to See Complete Forum and Search --> : what library for C++


delk
July 17th, 2007, 01:26 PM
Hi to all C++ programmers-funs

I want to use in my application threads but I don't know anything about what libraries to use. I develop my application on Windows XP using as IDE the visual studio but i only use ANSI C++ thing and not CLR based applictaions so my programs easily ported to GNU Linux environment.

In the past i used to write code on GNU Linux using fork and generaly multiproccess communication (using ANSI C). But i've not ever written C++ code using threads.

I would appreciate if s.o know sth about cause i don't understand what's going on.

1. As i know in ANSI C++ Standar Library it is not supported Threads ?

2. Is there a Famous library for threads in C++ which is portable both at XP and GNU Linux (sth like g++ and MinGW).

3. And my last qeustion is which library of .NET is more acceptable?


If s.o know sth will help me a lot to understand this field and to start using threads in my code.


Thanks in advance

hspc
July 17th, 2007, 05:02 PM
About C++ and threadnig, check:
http://www.openmp.org
I don't understand the 3rd question about .net, .net framework has builtin support for multithreading.

delk
July 17th, 2007, 06:54 PM
About C++ and threadnig, check:
http://www.openmp.org
I don't understand the 3rd question about .net, .net framework has builtin support for multithreading.

Hi hspc thanks for your link.

In my third question I mean what library offers .NET with C++ for building mul-thread applications. is insight win32 API?

Also i take a look at Posix threads and i am not sure but i think that gives C and C++ API for windows & apparently Linux.

My problem is

if i decide to build an multithreaded program I will be able to write it with the same API (syntax) either refers to Windows or GNU LINUX platform.

ncode
July 27th, 2007, 06:59 AM
My problem is
if i decide to build an multithreaded program I will be able to write it with the same API (syntax) either refers to Windows or GNU LINUX platform.
boost (http://boost.org/)
boost thread (http://boost.org/doc/html/thread.html)