File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes C / C++ and the fly likes posix threads and performance with posix libraries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "posix threads and performance with posix libraries" Watch "posix threads and performance with posix libraries" New topic
Author

posix threads and performance with posix libraries

Joel Thompson
Greenhorn

Joined: Oct 04, 2006
Posts: 15
Hi I'd like to know if you'd recommend the POSIX libraries for threads/concurrency..etc. and is it detailed in your book on how to use them?
I heard there are performance issues on WINDOWS. Can you comment on that from your own experience?
Any good posix impl's to avoid performance/concurrency issues?
Thanks!
Joel
Anthony Aj Williams
author
Ranch Hand

Joined: Jun 10, 2011
Posts: 56
Joel Thompson wrote:Hi I'd like to know if you'd recommend the POSIX libraries for threads/concurrency..etc. and is it detailed in your book on how to use them?
I heard there are performance issues on WINDOWS. Can you comment on that from your own experience?
Any good posix impl's to avoid performance/concurrency issues?


The POSIX thread libraries are only covered in my book in the appendix comparing various threading libraries; my book is about the C++0x threading facilities.

I would recommend that in new C++ code you use the C++0x thread facilities wherever possible. The only implementation I am aware of for Windows is my just::thread implementation, and this has very low overhead compare to raw OS threads on both Linux and Windows, with comparable performance on both platforms.


Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/
just::thread C++11 thread library http://www.stdthread.co.uk
Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976
 
 
subject: posix threads and performance with posix libraries
 
Similar Threads
Porting pre-C++11 code
Thread to create and load large list of images
multiple instances of JVM under Linux OS
Written Test in UK Interview - J2EE Role - Help Needed
synchronization for static methods