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...

HR Interview Questions With Simple Answers - Top 30.

Here are some very important HR questions which are often asked during Interviews and I believe these answers can really help you to get through....... Click on them to view the answer: 1) Tell Me Something About Yourself ? 2) What Are Your Strengths? 3) What Are Your Weaknesses? 4) How Do You Handle Pressure / Can You Work Well Under Pressure? 5) What Are Your Short Term Goals? 6) What Are Your Long Term Goals? 7) Where Do You See After 5 Years? 8) Why Should We Hire You? 9) What Is Your Salary Expectation? 10) Why Do You Want To Leave Your Current Job? 11) Do You Prefer To Work Alone Or As A Team Player? 12) What Made You Choose Your Major / Stream? 13) Why Didn’t You Pursue A Career In Your Major / Stream? 14) Why Do You Want To Work For Us? 15) Are You Willing To Travel? 16) Are You Willing To Take Risks? 17) What Do You Know About This Company? 18) What Do You Seek From A Job? 19) How Do You Evaluate Success? 20) Dur...

Sample Cover Letter / Job Application.

To The General Manager (HR) [ Name and Designation (Bold Words)] Infosys Limited Delhi – 110001 Uttam Agrawal Gandhi Chowk, Bhartee Street [ Name Bhawanipatna, Kalahandi Contact Address Orissa – 766001 Telephone No.] Ph. no - +91-9438170446 [Sub: Application for the position of ___________ in your esteemed organization.] Respected Sir, (Always use ‘Respected’) With reference to your advertisement dated 14th may’ 08 in The Times of India for the position of ___________ . I would like to place myself as a strong contender before you. OR This has reference to your advertisement dated 14th may’ 08 in The Times of India for the position of ____________. In the said connection I take this opportunity to apply for the said position as a strong contender. /*This is the Introduction i.e the first paragraph of your application/* ( Now the Second Paragraph is the Self Introduction) Try to start the second paragraph with the below mentioned lines: - I have the p...