What are the advantages of multi threading?, Operating System

Assignment Help:

What are the advantages of multi threading? 

Multithreading a code can have several advantages.

  • Improve application responsiveness --Any program in which various activities are not dependent upon each other can be redesigned so that each activity is defined as a thread. For instance, the user of a multithreaded GUI doesn't have to wait for one activity to complete before starting another.
  • Use multiprocessors more efficiently -- usually, applications that articulate concurrency requirements with threads need not to take into account the number of available processors. The performance of the application enhances transparently with additional processors. Numerical applications and algorithms with a high degree of parallelism, for instance matrix multiplications, are able to run much faster when implemented with threads on a multiprocessor.
  • Improve program structure -- several programs are more efficiently structured as semi-independent or multiple independent units of execution instead of as a single monolithic thread. Multithreaded programs are able to be more adaptive to variations in user demands than single threaded programs.
  • Use fewer system resources -- Programs that utilizes two or more processes that access common data by means of shared memory are applying more than one thread of control. Though, every process has a full address space and operating systems state. The cost of maintaining and creating this huge amount of state information makes each process a lot more expensive than a thread in both time and space. Additionally, the inherent separation among processes is able to require a major effort by the programmer to communicate between the threads in different processes or to synchronize their actions.

 


Related Discussions:- What are the advantages of multi threading?

Page faults, Assume there are only 4 page frames in the physical memory, fo...

Assume there are only 4 page frames in the physical memory, for the following reference string: 1, 2, 3, 4, 5, 3, 4, 1, 6, 7, 8, 7, 8, 9, 7, 8, 9, 5, 4, 5, 4, 2, 8. a) What i

Linear programming problem, A paper mill produces two grades of paper viz.,...

A paper mill produces two grades of paper viz., X and Y. Because of raw material restrictions, it cannot produce more than 400 tons of grade X paper and 300 ton

#title.paging, explain hierarchical,hashed and inverted paging

explain hierarchical,hashed and inverted paging

Determine the fork and execlp functions - linux, Assignment What I...

Assignment What I'm covering: General control flow fork() execlp() Parameters Makefiles Additional Questions General Control Flow/fork(

Multiprogramming, how response times are reduced by allowing time sharing o...

how response times are reduced by allowing time sharing on top of multiprogramming

What are the benefits of multiprogramming?, What are the benefits of multip...

What are the benefits of multiprogramming? Responsiveness : Multithreading is an interactive application may permit a program to continue running even if part of it is block

Explain single partition allocation., Operating Systems 1. Explain sing...

Operating Systems 1. Explain single Partition Allocation and Multiple Partition Allocation. 2. What do you mean by PCB? What useful information is available in PCB? 3. De

Explain multithreading operating system, Multithreading - Operating system...

Multithreading - Operating systems that permit different parts of a software program to run concurrently. Operating systems that would come into this category are: Linux UNI

Explain the demand paging system, Question : (a) In the demand paging ...

Question : (a) In the demand paging system, when a process tries to access a page that was not brought into memory, a page fault occurs that involves a series of actions. The

Packets and time division multiplexing (tdm), Broken data into small packet...

Broken data into small packets allow time division multiplexing. In TDM every packet leaves the sender and is switched on the shared interaction channel through a multiplexer. At t

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd