wood burning stoves 2.0*
The moose likes C / C++ and the fly likes Important? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » C / C++
Bookmark "Important?" Watch "Important?" New topic
Author

Important?

Eko Wibowo
Greenhorn

Joined: Jun 27, 2008
Posts: 3
How important concurrency in c++ these days (where there are lots of programming language with "easier" syntax for concurrency)?
Anthony Aj Williams
author
Ranch Hand

Joined: Jun 10, 2011
Posts: 56
Eko Wibowo wrote:How important concurrency in c++ these days (where there are lots of programming language with "easier" syntax for concurrency)?


Concurrency in C++ is very important. People often use C++ for performance, and one of the primary uses of concurrency is for performance, so they naturally go together. Microsoft's recent announcement of C++AMP is an example of this.

I agree that some languages have "easier" syntax, but to a large extent this can be addressed through library facilities in 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
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

Unless you develop Aritificial Intelligence or Operating Systems or device drivers that need to handle/process multiple instructions in-parallel, in my opinion, the scope for the use of concurrency in C++ is quiet limited.

Very rarely people use concurrency in C++ to solve highly complex mathematical problems/models, as there are dedicated languages(FORTRAN for example).


S.D. MADHAN
Not many get the right opportunity !
Anthony Aj Williams
author
Ranch Hand

Joined: Jun 10, 2011
Posts: 56
Madhan Sundararajan Devaki wrote:Unless you develop Aritificial Intelligence or Operating Systems or device drivers that need to handle/process multiple instructions in-parallel, in my opinion, the scope for the use of concurrency in C++ is quiet limited.

Very rarely people use concurrency in C++ to solve highly complex mathematical problems/models, as there are dedicated languages(FORTRAN for example).


I disagree. In my experience, people use concurrency in C++ for many applications. A large number of desktop applications use C++ and concurrency for performance, for example, and others use multithreading to provide responsiveness even where there is no improvement in processing speed.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18760
    
  40

Anthony Aj Williams wrote:
I disagree. In my experience, people use concurrency in C++ for many applications. A large number of desktop applications use C++ and concurrency for performance, for example, and others use multithreading to provide responsiveness even where there is no improvement in processing speed.


Agree with the disagreement. I do about 40% C/C++ work. And in almost every case, the applications are multi-threaded. Interestingly, it is the Java components that are less threaded. The reason is I work with application servers in Java, and components running in web/app servers are single threaded (or at least, they are supposed to be).

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Brian Overland
author
Ranch Hand

Joined: Sep 09, 2011
Posts: 36
Brian Overland here. My two cents:

For certain kinds of advanced programmers, AJ is right, that multi thread and concurrent processing will become more and more important.

BUT for beginner or intermediate programmers, bear in mind that mutli threading is an advanced subject. You won't need it to write simple applications... in fact you can write rather sophsticated programs without it.

HOWEVER, I do agree it will become more and more important in the future. I would recommend: Buy Anthony AJ Williams' book. At least after you've mastered the basics of C++.

-- Brian O.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Important?