aspose 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
Register / Login


JavaRanch » Java Forums » Languages » C / C++
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: posix threads and performance with posix libraries
 
Similar Threads
Written Test in UK Interview - J2EE Role - Help Needed
multiple instances of JVM under Linux OS
synchronization for static methods
Porting pre-C++11 code
Thread to create and load large list of images