Skip to main content

Operating System (OS) Interview Questions And Answers - Part VIII.



36. What Two Advantages & Disadvantages Do Threads Have Over Multiple Processes? Suggest One Application That Would Benefit From The Use Of Threads, & One That Would Not.

Threads are very inexpensive to create and destroy, and they use very little re-sources while they exist. They do use CPU time for instance, but they don't have totally separate memory spaces. Unfortunately, threads must "trust" each other to not damage shared data. For instance, one thread could destroy data that all the other threads rely on, while the same could not happen between processes unless they used a system feature to allow them to share data. Any program that may do more than one task at once could benefit from multitasking.

For instance, a program that reads input, processes it, and out-puts it could have three threads, one for each task. "Single-minded" processes would not benefit from multiple threads; for instance, a program that displays the time of the day.


37. Explain The Terms Time-Sharing & Multi-Programming?

Multi-programming: Multiple programs or jobs are kept in memory and executed together. Job execution scheduling will allow the CPU to be used by one job while the other job is waiting for I/O. This permits almost 100% utilization of CPU and other resources (note that the scheduler is an overhead).

Time-sharing: Allows many users to access the computer directly and on-line and at the same time. Concept relies on the fact that users are idle for the majority of the time. Both compute intensive jobs and interactive service can be provided.


38. What Is Spooling & What Are The Benefits? Is It Useful On A Single-User System?

Spooling refers to queuing jobs on disk and having the system service each job in turn as resources become available. A good example is print job spooling. Spooling is useful on single-user system as it allows the user to submit a job for printing or processing without having to wait for the current job to finish.


39. Why is the process table needed in a timesharing system? Is it also needed in personal computer systems in which only one process exists, that process taking over the entire machine until it is finished?

The process table is needed to store the state of a process that is currently suspended, either ready or blocked. It is not needed in a single process system because the single process is in control of the system and there is no need to "track" it.


40. Differentiate Between A Process & A Program?

A Program or Computer Program essentially provides a sequence instructions (or algorithms if you rather) to the operating system or computer. These computer programs come in an executable form that the Operating System recognizes and can use to directly execute the instructions.

A process invokes or initiates a program. It is an instance of a program that can be multiple and running the same application.

For example: Notepad is one program and can be opened twice. When a user opens 3 notepad, there are 3 instances or processes of notepad running.


ALSO READ:

41. What Is A PCB? Explain The Structure Of Process Control Block?
42. Define & Differentiate Between Swapping & Spawning?
43. What Is Disk Scheduling? What Are The Different Disk Scheduling Techniques?
44. Give Several Reasons Why Dead Line Scheduling Is Complex?
45. Distinguish Between Scheduling Policy & Scheduling Mechanisms.


46. What Are Schedulers & What Are Types Of Schedulers?
47. Explain The Importance Of Long Term Scheduler, Short Term Scheduler & Medium Term Scheduler?
48. State The Difference Among Short-Term, Medium-Term & Long-Term Scheduling?
49. Explain The Difference Between Response Time & Turnaround Time. These Times Are Both Used To Measure The Effectiveness Of Scheduling Schemes.
50. Define Preemptable Resource & Non Preemptable Resource. Give Examples?

 
... Return To Operating System FAQ's Index.

... Return To Homepage.

Comments

Popular posts from this blog

Tell Me Something About Yourself - Interview Answers.

Try to introduce some of your most important employment-oriented skills as well as your education and accomplishments to the interviewer. Answer to this question is very important because it positions you for the rest of the interview . That's why this statement is often called the "Positioning Statement". One should take the opportunity to show his/her communication skills by speaking clearly and concisely in an organized manner. Since there is no right or wrong answer for this question hence it is important to appear friendly. YOUR ANSWERS CAN BE: 1) I am a person with strong interpersonal skills and have the ability to get along well with people . I enjoy challenges and looking for creative solutions to problems. 2) Besides the details given in my resume, I believe in character values, vision and action. I am quick in learning from mistakes. I am confident that the various tests that you have conducted will corroborate my competencies apti...

What Is (Are) Your Weakness (Weaknesses)? - Interview Answers

There’s a saying – “However small the thorn maybe it has the ability to pierce.” Never say you are a Workaholic, a Perfectionist, etc. because it sounds negative. Try to convert these negative biased qualities into positive ones. For Example, In   place of Workaholic you can say you are a hard worker and always willing to work for extra hours. In place of Perfectionist , you can say you are detail oriented and like to set high standard for work. “Try to specify your weakness as your strength and also highlight it as a benefit.” Your answers can be: 1) One of my weaknesses as I perceive is occasional compromise on time for quality and perfection. 2) I feel I am not very detail-oriented . I’m a person that wants accomplish as much as possible. I realized this hurts quality and therefore I‘m trying hard to find a balance between quality and quantity. 3) At times even when I need help, I try to solve my own problems instead of asking a co-worker who might know...

What Is (Are) Your Strengths? - Interview Answers

This is a simple and popular interview question. Generally people answer it in two ways. There are people who simply state their strength like “I am Young, Dynamic, Intelligent, Smart and so on…”. Such answer is neither right nor wrong but does not help u in any way also. Secondly there are peoples who state their strengths and explain them how he can use his strength for the job and industry. Do not simply state your strength. Everyone has some strength, all you need is to convert them into benefits. In short, try to advertise yourself by converting your features into strengths. “EVERYONE CLAIM THEY ARE HONEST, HARDWORKING, SMART AND SO ON….. BUT WITH AN EXAMPLE IT IS MUCH MORE BELIEVABLE.” Your answers can be : 1) I am a hard worker and because of this ability I can work for additional hours to accomplish my tasks.I am commitment oriented and hence I always enjoy the trust and confidence of my team mates which enables me to perform my duties very easily. 2) I am a...