• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

C++ vs Java concurrency

 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear author and others

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


Thanks,
Pradeep Bhatt
 
author
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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++.
 
Pradeep bhatt
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Anthony. what is C++11? Is 11 version of c++ ?
 
Anthony Aj Williams
author
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic