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?

Explain wait for graph, Explain Wait for Graph a. Use a resource alloca...

Explain Wait for Graph a. Use a resource allocation graph to derive a wait-for graph.  b. Wait-for graph acquired by making an edge from p 1 to p 2 iff p 1 is waiting for

What are turnaround time and response time, What are turnaround time and re...

What are turnaround time and response time? Turnaround time is the interval among the submission of a job and its completion. Response time is the interval among submission

Activities of operating system-secondary-storage management, Q. What are th...

Q. What are the three main activities of an operating system in regard to secondary-storage management? Answer: 1) Free-space management 2) Storage allocation 3) Disk

Define i/o and cpu bursts, Define I/O and CPU Bursts   Applications typ...

Define I/O and CPU Bursts   Applications typically to through cycle of CPU bursts and Input/output bursts. Since the CPU sits idle during I/O operations, efficiency is improved

What is an i/o subsystem, What is an I/O subsystem? The control of devi...

What is an I/O subsystem? The control of devices connected to the computer is a main issue while designing operating systems. Because I/O deices differ widely in their function

Explain the concept of mutual exclusion, Question 1: (a) Discuss about...

Question 1: (a) Discuss about the evolution of operating systems from mainframe batch systems to mainframe time sharing systems. (b) Explain your understanding of the "sus

What are the various process scheduling concepts, What are the various proc...

What are the various process scheduling concepts? a) Scheduling queues with diagram b) Queuing diagram c) Schedulers d) Context switch with diagram

Process, what common event leads to the creation of a process?

what common event leads to the creation of a process?

What are overlays, What are overlays? To enable a process to be larger ...

What are overlays? To enable a process to be larger than the amount of memory allocated to it, overlays are used. The idea of overlays is to keep in memory only those instructi

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