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?

Galvin, difference between process and thread

difference between process and thread

Explain and differentiate programmed and interrupt i/o, Question 1 Explain...

Question 1 Explain the structure of operating system in detail Question 2 Explain the following scheduling algorithm                                     1) First come Firs

What are the advantages of linked allocation, What are the advantages of Li...

What are the advantages of Linked allocation? The benefits are a. No external fragmentation b. Size of the file does not require to be declared

Fibonacci sequence, #questionThe Fibonacci sequence is the series of number...

#questionThe Fibonacci sequence is the series of numbers 0,1,1,2,3,5,8,… Formally, it can be expressed as: fib0 = 0 fib1 = 1 fibn = fib n-1 + fib n-2 Write a C program u

Modern os, importance of Operating system in modern computers. Also explain...

importance of Operating system in modern computers. Also explain various functions & types of operating systems

Explain multiprocessing operating system, Multiprocessing - An Operating S...

Multiprocessing - An Operating System proficient of utilizing and supporting more than one computer processor. Below are some instances of multiprocessing Operating Systems. Li

Operating system abstractions, When we download a movie from the Internet, ...

When we download a movie from the Internet, we don't care about, say, packet sizes. However, even ifwe are not aware of howlow-level details of networks are implemented, our data i

Dynamically loadable kernel modules, Q. Dynamically loadable kernel module...

Q. Dynamically loadable kernel modules give elasticity when drivers are added to a system however do they have disadvantages too? Under what situations would a kernel be compiled

Explain rehashing to handle collision, Explain Rehashing to Handle Collisio...

Explain Rehashing to Handle Collision Rehashing:  Re-hashing schemes make use of a second hashing operation while there is a collision. If there is an additional collision, we

Scheduler that select process from secondary storage device, A scheduler th...

A scheduler that selects processes from secondary storage device is known as                    Medium term scheduler is a scheduler that selects processes from secondary stor

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