Advantages and Disadvantages of Threads over Multi processes, Basic Computer Science

Advantages:-
• Sharing Treads permit the sharing of a lot resources that cannot be shared in process, for instance, sharing code section, data section, Operating System resources like open file etc.
• Context Switching Threads are very reasonably priced to create and destroy, and they are inexpensive to represent. For instance, they require space to store, the PC, the SP, and the common-purpose registers, but they do not need space to share memory information, Information about open files of I/O devices in use, etc. With so little circumstance, it is much faster to switch between threads. In other words, it is comparatively simpler for a circumstance switch using threads.

Disadvantages:-
• Security Since there is, a wide sharing among threads there is a potential difficulty of security. It is quite possible that one thread over writes the stack of a different thread (or damaged shared data) although it is very unlikely since threads are destined to cooperate on a single task.
• Blocking The major drawback if that if the kernel is single threaded, a system call of one thread will block the entire process and CPU may be idle during the blocking period.
Posted Date: 5/2/2012 7:14:52 AM | Location : United States







Related Discussions:- Advantages and Disadvantages of Threads over Multi processes, Assignment Help, Ask Question on Advantages and Disadvantages of Threads over Multi processes, Get Answer, Expert's Help, Advantages and Disadvantages of Threads over Multi processes Discussions

Write discussion on Advantages and Disadvantages of Threads over Multi processes
Your posts are moderated
Related Questions
outline and explain in detail any 10 application areas of vb.net

A dictionary is variable and is one more container type that can store any number of Python objects, counting other container types. Dictionaries consist of pairs (identified items

Problem 1 Research designs have a critical and directive role to play in the research process. Explain the meaning of research design. Describe the various types of research de

Diskless workstations:    Most people assume that the operating system is stored on a disk that is connected directly to the computer, but this is not necessarily true. If the


APPLICATION PACKAGES : There are two options. You can either write your own program or buy an applications package, i.e. a proprietary program, 'off-the-shelf. The former option i

How to make a stale marriage program by implementing the Gale Shapley algorithm using Java program

Ask queswhat is the advanages of eeprom?

Networking Operating Systems,  Networking OS provides file sharing, Networking OS provides communication scheme, NT Server Security added Multi user capability added RAI

Conditional constructs are used to integrate decision making into programs. The outcome of this decision making determines the series in which a program will execute instructions.