aspose file tools*
The moose likes C / C++ and the fly likes C++ vs Java concurrency Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "C++ vs Java concurrency" Watch "C++ vs Java concurrency" New topic
Author

C++ vs Java concurrency

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Dear author and others

How does the C++ and Java compare with each other as far as concurrency APIs are concerned ?


Thanks,
Pradeep Bhatt


Groovy
Anthony Aj Williams
author
Ranch Hand

Joined: Jun 10, 2011
Posts: 56
Pradeep bhatt wrote:How does the C++ and Java compare with each other as far as concurrency APIs are concerned ?


Recent versions of Java have more concurrency facilities out of the box than C++11 does, such as hash maps designed for concurrent access.

In my book I describe how to implement some of these using the C++11 facilities, and there are third-party libraries that provide ready-made versions for C++.


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
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Thanks Anthony. what is C++11? Is 11 version of c++ ?
Anthony Aj Williams
author
Ranch Hand

Joined: Jun 10, 2011
Posts: 56
Pradeep bhatt wrote:Thanks Anthony. what is C++11? Is 11 version of c++ ?


C++11 is the new 2011 edition of the C++ standard, as opposed to C++98, which was the original 1998 standard, and C++03 from 2003 which was the original standard with some bugs fixed.

C++11 contains a whole bunch of new language facilities and libraries, including a multithreading-aware memory model and a thread library. See the wikipedia entry for an overview of the new stuff. The docs for my implementation of the C++11 thread library are available here, and my book does a comprehensive description of how to use the facilities.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

That is good to know that C++ is constantly evolviong. I thought it has a level of maturity that no further additions/ refinements are needed. In Java new features are added through JSR. Who decides about C++.
Anthony Aj Williams
author
Ranch Hand

Joined: Jun 10, 2011
Posts: 56
Pradeep bhatt wrote:That is good to know that C++ is constantly evolviong. I thought it has a level of maturity that no further additions/ refinements are needed. In Java new features are added through JSR. Who decides about C++.


The evolution of C++ is handled by the ISO C++ Standards Commitee, commonly known as WG21. Anyone is free to submit a proposal via their National Body (INCITS, BSI, DIN, AFNOR etc). Also, if you post to the comp.std.c++ newsgroup with a proposal, and ask for help submitting it to ISO then I expect someone will help you out --- the moderators explicitly forward any defect reports (i.e. bugs in the standard itself rather than a particular implementation of it) to the committee.

You are also free to attend the committee meetings, though you need to let the committee know you are coming. Again, this is best organized through your National Body, but you can be an independent attendee. If you have written a proposal then you need someone to be at the meetings to champion it if you cannot be there yourself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: C++ vs Java concurrency