473,394 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Multithreading

110 100+
What do you preferred for multithreading? .NET or C++?

i am doing a report on the caveats/advantages; any platforms for comparison? ideas? comments?
Sep 23 '09 #1
6 1784
Banfa
9,065 Expert Mod 8TB
There is no threading in C++ all threading is provided by 3rd party libraries such as

Boost
.NET
QT

And normally those rely on the underlying threading mechanism of the OS on which they are running (Windows or Linux for example).
Sep 23 '09 #2
developing
110 100+
yes, true...

but, for example, in .NET all you have to do is start the thread and termination and resource reclamation is handled by the framework

any ideas for platforms for comparisons?
Sep 24 '09 #3
Banfa
9,065 Expert Mod 8TB
That is true of many multi-threading environments.

What really counts is the task/thread scheduling algorithm that is used by the system, that is how the system manages threads once they are created not how you create (or clean up after) them.
Sep 24 '09 #4
johny10151981
1,059 1GB
There is no threading in C++ all threading is provided by 3rd party libraries such as

Boost
.NET
QT
Hi Banfa,
I really didnt understand what you meant by that. Can you give any link or suggestion that can help to understand your comments...

regards
johny
Jan 16 '10 #5
Banfa
9,065 Expert Mod 8TB
C++ is a standard for the language and language syntax and the standard libraries.

The standard libraries include the C standard library and the STL.

No-where with-in the C or C++ standard is there any specification for any sort of threading, there can't be because C and C++ are designed to be used on such a wide range of platforms that it is not possible to specify a multi-threading standard that you could be sure could be implemented on all platforms.

Instead every platform provides its own threading library as appropriate, there is pthreads in Linux and the Windows kernel contains threading available through the WIN32 API, the .NET platform also provides a threading API. Additionally there are plenty of other libraries Boost, QT that provide a threading interface to the underlying threading capabilities of the platform. Many embedded platforms natively have no multi-threading for these there are libraries that implement threading such as vxWorks, ThreadX, uCOS.

The point is that all of these are either provided by a third party or the platform (that effectively is a third party too), the first and second parties being the C or C++ standard and the programmer.

So C++ does not support threading, it is supported by many platforms and/or third party libraries but if you want to use multi-threading in your program asking what multi-threading is available is C++ is unless because the answer is none. You need to ask what multi-threading libraries are provided by the manufacturers of the platform I am using and if the answer is none then do any third parties support a multi-threading library for this platform.
Jan 16 '10 #6
johny10151981
1,059 1GB
Thanks Banfa, Its clear...

regards
johny
Jan 17 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: dixp | last post by:
I'm new to writing multithreaded apps and I have a design question. I have a winforms app and a class which has a method that does processing which is time intensive. I want the user to be able...
47
by: mihai | last post by:
What does the standard say about those two? Is any assurance that the use of STL is thread safe? Have a nice day, Mihai.
16
by: Robert Zurer | last post by:
Can anyone suggest the best book or part of a book on this subject. I'm looking for an in-depth treatment with examples in C# TIA Robert Zurer robert@zurer.com
5
by: sarge | last post by:
I would like to know how to perform simple multithreading. I had created a simple form to test out if I was multithreading properly, but got buggy results. Sometime the whole thig would lock up...
9
by: tommy | last post by:
hi, i have found a example for multithreading and asp.net http://www.fawcette.com/vsm/2002_11/magazine/features/chester/ i want to speed up my website ... if my website is starting, they...
2
by: Rich | last post by:
Hello, I have set up a multithreading routine in a Test VB.net proj, and it appears to be working OK in debug mode and I am not using synchronization. Multithreading is a new thing for me, and...
55
by: Sam | last post by:
Hi, I have a serious issue using multithreading. A sample application showing my issue can be downloaded here: http://graphicsxp.free.fr/WindowsApplication11.zip The problem is that I need to...
5
by: sandy82 | last post by:
Whats actuallly multithreading is ... and how threading and multithreading differ . Can any1 guide how multithreading is used on the Web .. i mean a practical scenario in which u use...
2
by: Pradnya Patil | last post by:
hi , I am trying to draw ' html div-tag ' on the screen which will resemble a rectangle through vb.net code. I want it to be drawn faster...so I introduced multithreading using Threadpool. I...
7
by: Ray | last post by:
Hello, Greetings! I'm looking for a solid C++ multithreading book. Can you recommend one? I don't think I've seen a multithreading C++ book that everybody thinks is good (like Effective C++ or...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.