This website uses cookies to ensure you have the best experience. Learn more

How Multithreading Works In A Server

874 words - 4 pages

|
CSC 302- Principles of Operating Systems |
Assignment on Multithreading |
|
|
Stephen Nyabuti – 12S01ABT023 |

Feb 2013 |

1. How multithreading works in a server
Multithreading occurs when a process executing an application, is divided into threads that can run concurrently. Multithreading is useful for applications that perform a number of essentially independent tasks that do not need to be serialized.
When a multithreaded application is active in a server, the events that occur take place in three phases:
i. Start-up phase- requests come in and are handed to a thread for processing.
ii. Work phase- in this phase multiple client requests are handled ...view middle of the document...

Another application will not wait pending the completion of another request.
* They use a cooperative approach to sharing the CPU which is a drawback.
* Blocking system calls are problematic since one blocked thread will block all threads.
* In cooperative multithreading the thread themselves are relied to relinquish control once they stop. This creates problems when threads are waiting for resources to become available.
* In preemptive multithreading, a system may make a context switch at an inappropriate time causing priority inversion or other negative effects.
As Kernel space threads
* No runtime system in each process
* The Kernel can easily reschedule threads when they block.
* Improved throughput - many concurrent computed operations and I/O requests within a single process.
* Simultaneous and fully symmetric use of multiple processors for computation and I/O.
* Improved server responsiveness. Large or complex requests or slow clients do not block other requests for service. The overall throughput of the server is much better.
* Minimized system resource usage. Threads impose minimal impact on system resources. They require less overhead to create manage and maintain compared to a traditional process.
* Thread synchronization functions can be used to provide enhanced process- to - process communication.
* The system may make a context switch at an inappropriate time causing priority inversion or other negative effects. This is a drawback.
* Another disadvantage in kernel space multithreading is slower thread switching compared to user space threads.
* Thread scheduling is also slower than in user space threads.
* They get blocked if all of their associated kernel threads get blocked even if there are some user threads that are ready to run.

3. Challenges brought about by multithreading and how they can...

Other Papers Like How Multithreading Works in a Server

How to Start a Business in Canada

2257 words - 10 pages business are: simplicity and inexpensiveness, direct control of decision-making, and a limited regulatory burden. Disadvantages of sole proprietorship include an unlimited liability for the owner, which can result in creditors going after personal assets if the owner’s business lacks the financial resources to cover their debt obligations. In sole proprietorship, it can also be difficult to raise capital on your own, and depending on how successful

How to Fill in a Cv

541 words - 3 pages |How to write a successful CV, New Associated Publishers, London, 2002. | |Seminars |Example of project: | |Honours and awards |Devon new public library. Principal architect in charge of design, production, bidding and construction | |Memberships

How Fish Cope in a World of Feast and Famine

657 words - 3 pages “How Fish Cope in a World of Feast and Famine” Samantha Erickson I attended a seminar on “How Fish Cope in a World of Feast and Famine,” given by Dr. Johnny Armstrong. Dr. Armstrong received his doctorate in Ecology from the University of Wyoming with a emphasis in physiological ecology, specifically the adaptation and survival of fish. The study he explained in his seminar was completed in the Bristol Bay region of Alaska and studied Sockeye

How to Format a Paper in Apa Style

674 words - 3 pages don’t hesitate to reach out to me. Thanks, Catina How to Format a Paper in APA Style Student Name Medical Law and Ethics & Records Management for Billing Specialists (ME1420) Instructor Name November 24, 20XX How to Format a Paper in APA Style Your college papers here at Ultimate Medical Academy will all be formatted the same way. Once you learn the correct format, you will not have to worry about how to prepare your written

Explain How Culture and Socialisation Interact in a Sociological Context

1740 words - 7 pages Explain how culture and socialisation interact in a sociological context? Culture is our knowledge we gain from birth as a result of our immersement into our cultural group. Socialisation is the way in which we learn this information we gain from such contact. When we look at the two ‘Culture and Socialisation’ and study how this interaction occurs, what is gained, changed, modified, etc we are defining the interaction of culture and

How Rumours Effect Characters in to Kill a Mockingbird

830 words - 4 pages some people did agree with Atticus that Tom was as innocent as a baby. The reason though that the whole town did not openly agree, was probably because it was only a matter of black and white. Atticus knew this rumor was false and did his best to prove it. While young Dill could do nothing except get dizzy on the fact of how cruel the white man could be to the black man. In regards to this rumor Atticus takes a stand, while Dill can do nothing

How to Work in My Vocation and Be a Christian

1408 words - 6 pages image of God you will speak how God does. For example someone may ask a question that I may not want to answer that may involve some ugly trues. I should answer that question with the truth. In John 8:32 says: And ye shall know the truth, and the truth shall make you free. It’s impossible to be made in the image of God and not have His attributes. Likewise it’s impossible to live for the devil and not have his attributes. In my vocation as a

How to Maintain a Positive Attendance Rate in High Schools

5616 words - 23 pages Topic Question How to Maintain a Positive Attendance Rate in High Schools Research in Education June 30, 2011 How to Maintain a Positive Attendance Rate in High Schools Introduction The purpose of my study will be to show constructive ways or strategies to improve the attendance rate in secondary schools. If attendance is improved the orderliness of the learning

How Is Pop Culture a Reflection of Change in America

1163 words - 5 pages How is Pop Culture a Reflection of Change in America? Deirdre D. Turner SOC 225: Cultural Diversity Stark State College . How is Pop Culture a Reflection of Change in America? I asked my children if they ever heard of a Holly Hobby Oven. I laughed when I saw the funny look upon their faces, (as if they had bitten into a super sour lemon). They all chimed in with a big “no”. I remember the Holly Hobby Oven. I was about five years of age

: Explain How Culture and Socialisation Interact in a Sociological Context

835 words - 4 pages Teaching Period 3, 2013 SLSS102 Explorations in Sociology Assessment 1: Minor essay Word limit: 1000 (+/- 10%) Due date: 9am AEDT Monday 2 December (Week 5) Weighting: 20% Assessment details Write a 1000-word essay on one of the following topics: TOPIC 1: Which is more important in shaping individual identity: social structure or social interaction? TOPIC 2: Explain how culture and socialisation interact in a sociological context

How Does Fate Play a Part in ‘Romeo and Juliet'?

574 words - 3 pages How Does Fate Play A Part In ‘Romeo and Juliet'? ‘Romeo and Juliet' was written during a period when Shakespeare had found the strength of his writing, it is believed that it was written around 1595 and he would have been about 26 years old when he wrote it. The play is a widely known tragedy concerning the fate of two young "star-cross'd lovers". It is one of the most famous of Shakespeare's plays and one of his earliest theatrical triumphs

Related Essays

How Capital Punishment Works In The United States

941 words - 4 pages gas, electrocution, and lethal injection (Snell 16). Of these methods, each result in death for the prisoner in distinct ways.      Before hanging, application of a measuring process, based on weight, yields 1260 foot- pounds of force to the condemned person's neck (Bobit 5). Blindfolded (McCuen 19), the convict stands with a noosed rope or cord ("Hanging" Encarta 1) around their neck, behind the left ear

Characterization In Three Selected Works: A Comparative Essay

1995 words - 8 pages Characterization in Three Selected Works: A Comparative Essay In most pieces of fictional narrative or poetry characters are what drive the story. Characters reveal information, act out scenes and compel readers to keep turning pages with their ability to make an impression on the reader. Whether this impression is positive or negative well written characters connect the reader with the story in a way that is immersive. This essay will offer

Outsiders In A Futuristic Society: The Works Of Ray Bradbury

966 words - 4 pages indicates that Brock is somewhere for treatment towards his violence towards machines. In the text Bradbury use personification. This kind of metaphor is used to symbolise an the technology as it was alive or a person. Some examples of personification he used are “Oh, how it sizzled at screamed” and “Then the telephone rang like a spoiled brat”. This links to the start of the text when the psychiatrists son spoke to him. He uses it to treat

How To Cheat In A Test

4567 words - 19 pages an error and marked the less-darkened bubble. This works more with gullible teachers; some have been able to fool teachers many times with this method. However, do not do this on every test as your teacher will catch on eventually. Cell Phone Method Put all needed information in a note on your cell phone. Put your cell phone on your knees, where the teacher cannot see it, and when you need an answer, look down at the note you typed. Make sure