answersLogoWhite

0


Best Answer

threads are the light weight process or it is a part of the process which can execute simulteniously by sharing systm resources....

two types of thread

1.user level thread

2.kernel level thread

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

Following are some reasons why we use threads in designing operating systems.

  1. A process with multiple threads make a great server for example printer server.
  2. Because threads can share common data, they do not need to use interprocess communication.
  3. Because of the very nature, threads can take advantage of multiprocessors.
This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Threads are created using API(Application Programming Interfaces) using windows programming ..

used API 's are CreateThread(..)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do threads work in an operating system?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Performing Arts

What are the advantages and disadvantages of user level threads and kernel level threads?

- USER LEVEL THREADS Aadvantages: · User-level threads can be implemented on operating system that does not support threads. · Implementing user-level threads does not require modification of operating system where everything is managed by the thread library · Simple representation which the thread is represented by a the thread ID, program counter, register, stack , all stored in user process address space · Simple management where creating new threads, switching threads and synchronization between threads can be done without intervention of the kernel · Fast and efficient where switching thread is much more inexpensive compared to a system call - Disadvantages: · There is a lack of coordination between threads and operating system kernel. A process gets one time slice no matter it has 1 thread or 10000 threads within it. It is up to the thread itself to give up the control to other threads · If one thread made a blocking system call, the entire process can be blocked in the kernel, even if other threads in the same process are in the ready state KERNEL LEVEL THREAD: - Advantages: · Because kernel has the full knowledge of all the threads, scheduler may decide to allocate more time to a process having large number of threads than process having small number of thread, where the kernel threads come useful for intense application - Disadvantages: · Kernel level threads are slow and inefficient, since kernel must manage and schedule all the threads as well as the processes. It requires a full TCB for each thread to maintain information about threads, which results in increasing of overheads and kernel complexity


What solutions work with your operating system?

On a Mac computer the operating system is OSX. All of the solutions are OSX based and are different for each application.


What operating system allows a single user to work on two or more programs that reside in memory at the same time?

A Multitasking Operating System


What are the advantages of threads in Operating System?

In simple terms, they allow you to multitask better, meaning run multiple programs without experiencing a major decrease in performance.


List of thread models in operating system?

Your question is to board to answer. There are many operating systems written in many different program languages. Asking this question this way is like asking for a water pump for a car. What make, model, year and on. If your interested in program threads there are many books available on different program languages. As for windows XP writing threads or rewriting threads will make the system very unstable or even inoperable. This type of thing is best left to experienced programmers (Microsoft Programmer's).

Related questions

How an operating system use time slicing?

It uses time slicing by allocating time to threads for each process/task that is to be executed.


Will flatout 2 for windows work for mac?

Games written for the Windows operating system require the Windows operating system to work. If the Mac has Windows installed on it then it will work otherwise it will not work.


Why implementation of threads in Operating Systems is more responsive than processes?

i dont know but i think it cause your computer nono work :)


When moved from vista to an Mac how do you get your photo shop elements 5 to run on a mac?

Software is written to work with a specific operating system. Software that works with the Windows Vista operating system will not work with the Mac OS X operating system. There are separate versions of Photoshop Elements for each operating system and the correct version is required for each operating system. (See links below)


Does windows ME operating system work with wireless networking?

NO


What are the advantages and disadvantages of user level threads and kernel level threads?

- USER LEVEL THREADS Aadvantages: · User-level threads can be implemented on operating system that does not support threads. · Implementing user-level threads does not require modification of operating system where everything is managed by the thread library · Simple representation which the thread is represented by a the thread ID, program counter, register, stack , all stored in user process address space · Simple management where creating new threads, switching threads and synchronization between threads can be done without intervention of the kernel · Fast and efficient where switching thread is much more inexpensive compared to a system call - Disadvantages: · There is a lack of coordination between threads and operating system kernel. A process gets one time slice no matter it has 1 thread or 10000 threads within it. It is up to the thread itself to give up the control to other threads · If one thread made a blocking system call, the entire process can be blocked in the kernel, even if other threads in the same process are in the ready state KERNEL LEVEL THREAD: - Advantages: · Because kernel has the full knowledge of all the threads, scheduler may decide to allocate more time to a process having large number of threads than process having small number of thread, where the kernel threads come useful for intense application - Disadvantages: · Kernel level threads are slow and inefficient, since kernel must manage and schedule all the threads as well as the processes. It requires a full TCB for each thread to maintain information about threads, which results in increasing of overheads and kernel complexity


Can your Sims for Mac be used on a Microsoft?

Software is written to work with a particular operating system. Software written to work with Mac OS X will not work with the Windows operating system and vice versa.


Which must be loaded first to a computer's memory the operating system or software?

Operating system must be loaded first so that other applications and programs will be able to work.


Can a multithread solution using multiple user level threads achieve better performance on a multiprocessor system than on a single processor system?

A multithreaded system comprising of multiple user-levelthreads cannot make use of the different processors in a multiprocessorsystem simultaneously. The operating system sees only a single processand will not schedule the different threads of the process on separateprocessors. Consequently, there is no performance benefit associatedwith executing multiple user-level threads on a multiprocessor system.


What operating systems work best with the punch card app?

The Punch Card application works best with the Mac operating system, but the application will work with any operating system. The Punch Card application works with the iTunes program.


What operating system allows a single user to work on two or more programs that reside in memory at the same time?

A Multitasking Operating System


What solutions work with your operating system?

On a Mac computer the operating system is OSX. All of the solutions are OSX based and are different for each application.