Home > DeveloperSection > Forums > Threading
Ritesh Naik
Ritesh Naik

Total Post:1

Points:7
Posted on    February-18-2015 5:25 AM

 C# Thread  Threading 
Ratings:


 1 Reply(s)
 544  View(s)
Rate this:
when we have to use multithreading


Barbara Jones

Total Post:13

Points:91
Posted on    February-24-2015 11:43 PM

1.  Your question is very broad. There are few non-trivial systems where the functionality can be met simply, quickly and reliably with only one thread. For example: [pick out a typical system that the target company sells and pick out a couple aspects of its function that would be better threaded off - heavy CPU, comms, multi-user - just pick out something likely & explain].

 2.  Depends on what you mean by 'executing tasks'. Multithreading would surely be beneficial if the threads process mutually independent data in a concurrent fashion - it reduces requirements for locks and probabilty of deadlocks increases in a super-linear fashion with the number of locks. OTOH, there is no issue with threads executing the same code, this is safe and very common.

Don't want to miss updates? Please click the below button!

Follow MindStick