Explain the architecting for threads, Operating System

Assignment Help:

Explain the Architecting For Threads

When available, threads are an integral part of any multitasking server application program. It is important that the operating system provide an efficient mechanism for thread creation, execution, and manipulation. Ii is this increased efficiency and decreased overhead that makes the threads an invaluable resource. Threads may be widely used to make the server application more concurrent. Thread may be widely used to make the server application more concurrent. Introducing more executing agents working on behalf of the client application component increases the performance. For the developer, there is an even finer level of control over the application. In a multithreads system, each application program may have more than one thread executing.

Multithreading adds power to the developer by allowing the programmer to dispatch multiple (> 1) units of execution. The application can execute more quickly and efficiently because each thread is working concurrently with the others. In may example of multitasking, I showed how the operating system increased efficiency by running multiple applications at the same time. Application developers can add that power to their server applications by starting multiple threads. With each thread executing portions of code concurrently, application throughput is increased. Architecting code to fully utilize threads will maximize the efficiency by using the available CPU cycles. Server application developers should take this into consideration for optimizing their code on a given platform.

A common mechanism for architecting server applications using threads is the Worker Model discussed in the next section. It should be noted that resource requirements in the Worker Model may be relatively high. For example, stack allocation of 8 K FOR 250 threads alone would equal 2MB. Other designs, modeled after one thread per client, are acceptable as well. It is possible to define pools of available threads to execute application requests as they are received.


Related Discussions:- Explain the architecting for threads

Discuss distributed file system caching, Problem: (a) Discuss Distribut...

Problem: (a) Discuss Distributed File System Caching. (Your discussion should include the goal and architecture of distributed file system caching and the various possible c

Define the properties of interactive operating system, Define the propertie...

Define the properties of Interactive operating system Interactive:- This system is composed of many short transactions where the results of the next transaction may be unpred

Illustrate the function of loader, Q. Illustrate the function of Loader? ...

Q. Illustrate the function of Loader? A loader is a routine which loads an object program and prepares it for execution. There are many loading schemes: relocating, absolute an

What is the use of multiprogramming on individual processors, What is the u...

What is the use of multiprogramming on individual processors ? In the usual multiprocessor, which is dealing with independent or coarse-grained synchronization granularity, it i

What are privileged instructions, What are privileged instructions? Som...

What are privileged instructions? Some of the machine instructions that may cause harm to a system are designated as privileged instructions. The hardware permits the privilege

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

Is it essential to bind a real-time thread to an lwp, Q. Presume an operati...

Q. Presume an operating system maps user-level threads to the kernel using the many-to-many model and the mapping is done through LWPs. Additionally the system allows developers to

Identify the binding and non-binding constraints, Crumbles Bakery needs to ...

Crumbles Bakery needs to decide how many and what types of cupcakes to make today. Currently, they make two types of cupcakes: chocolate cupcakes and carrot cake cupcakes. Chocolat

Constructional techniques - copper clad circuit board, For the first assign...

For the first assignment you are required to construct a logic circuit onto a copper clad circuit board (vero board). This construction will require the use of planning the positio

Which of the subsequent instructions should be privileged, Q. Which of the ...

Q. Which of the subsequent instructions should be privileged? a) Read the clock b) Clear memory c) Set value of timer d) Issue a trap instruction e) Turn off interr

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