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 chaining to handle collision, Explain Chaining to Handle Collision ...

Explain Chaining to Handle Collision Chaining:  One easy scheme is to chain all collisions in lists attached to the suitable slot. This permits an unlimited number of collision

Interval between time of submission and completion of job, Interval among t...

Interval among the time of submission and completion of the job is known as                    Interval among the time of submission and completion of the job is known as Turn

What happens when you execute a program in unix, When you run a program on ...

When you run a program on your UNIX system, the system prepares a special environment for that program. This environment owns everything needed for the system to execute the progra

Define properties of distributed operating system, Define properties of Dis...

Define properties of Distributed operating system Distributed:- This system distributes computation among several physical processors. The processors do not share memory or a

Three conditions that solution for critical section problem, What are three...

What are three conditions that a solution for the critical section problem must satisfy? The three conditions are as following:- a)      Mutual exclusion :- if a process is

How are file sharing and protection implemented?, How are file sharing and ...

How are file sharing and protection implemented? To implement file protection and sharing, the system ought to maintain more file and directory attributes than are needed on a

Malloc, I need help implementing malloc

I need help implementing malloc

What is two-level directory, What is Two-level directory In the two-lev...

What is Two-level directory In the two-level directory structure every user has own user file directory (UFD). When a user jobs begins or a user logs in, the system's master fi

What do you mean by reference counts, Q. If each the access rights to an o...

Q. If each the access rights to an object are deleted the object can no longer be accessed. At this stage the object should also be deleted and the space it occupies should be ret

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