Google Answers Logo
View Question
 
Q: Operating System ( No Answer,   0 Comments )
Question  
Subject: Operating System
Category: Computers > Operating Systems
Asked by: salimjavaid-ga
List Price: $10.00
Posted: 02 Nov 2002 19:35 PST
Expires: 03 Nov 2002 13:25 PST
Question ID: 96988
1(a)A web server accepts client requests for web pages.  The server
can be designed as a single process or as a process with multiple
threads.  Which method is more efficient and why?

(b) If a web server is running Solaris, and the server thread
responsible for processing a request for a web page blocks, what will
be the effect on kernel thread, and user thread, i.e. the status of
the request?

2.. We discussed two variants of thread cancellation – asynchronous
and deferred cancellation
a) Explain the problem when using asynchronous cancellation
b) In the Java code-snippet shown below describing how to implement
deferred cancellation, a thread polls a variable to determine if it
should stop.  Describe what would happen if the statement “// do some
work” is where a thread is performing a blocking operation (for I/O as
an example).

b) What type of multiprocessing architecture will be suitable for
multiplication of matrices, and for scheduling of processes by the
kernel on multiple processors,  Give reasons for your answer.

3. To implement the soft real-time systems, one condition that is
required is small dispatch lagency, what are two ways by which system
calls can be made preemptible?

4. Explain why spinlocks are not appropriate for uniprocessor systems
you may be suitable for multiprocessor systems.
 
5. What is the meaning of the term busy waiting? What other kinds of
waiting are there in an operating system? Can busy waiting be avoided
altogether? Explain your answer.

6. Suppose we want to execute the statements S1, S2 and S3 in
sequence, but that S2 has to be executed exclusively for one process
at a time.  Write the code needed using semaphores.

Request for Question Clarification by omnivorous-ga on 02 Nov 2002 19:41 PST
Is this one question or 8 questions and a coding assignment?

Clarification of Question by salimjavaid-ga on 02 Nov 2002 21:09 PST
These are 8 shorts questions
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy