THREADING

Ritesh Naik

Total Post:1

Points:7
Posted by  Ritesh Naik
C#
 848  View(s)
Ratings:
Rate this:
when we have to use multithreading
  1. Barbara Jones

    Post:13

    Points:91
    Re: Threading

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!