Question

In: Computer Science

Handling Competition among Processes in computer science

Handling Competition among Processes in computer science

Solutions

Expert Solution

An important task of an operating system is the allocation of the machine's resources to the competing processes in the system. Here we are using the term resource in a broad sense, including the machine's peripheral devices as well as features within the machine itself. – The file manager allocates access to files as well and allocates mass storages pace for the construction of new files; – The memory manager allocates memory space; – The scheduler allocates space in the process table; and the dispatcher allocates time slices.

A common problem that can arise during resource allocation is deadlock: the condition in which two or more processes are blocked from progressing because each is waiting for a resource that is allocated to another. For example, one process may have access to the computer's printer but be waiting for access to the computer's CD player, while another process has access to the CD player but is waiting for the printer. Such conditions, as in other settings can severely degrade a system's performance

Solution to this is Avoiding deadlocks -Techniques that attack deadlock tend to be known as deadlock avoidance schemes. One, requires that each process requests all its resources at one time. • Another, perhaps more imaginative technique attacks the first condition, not by removing the competition directly but by converting non shareable resources into shareable ones.

Defining priority and scheduling resources to processes based on priority is another way to handle competition. CPU scheduling heavily uses priority to differentiate between performance of interactive jobs versus batch jobs.


Related Solutions

The questions read as follows: home / study / engineering / computer science / computer science...
The questions read as follows: home / study / engineering / computer science / computer science questions and answers / Course Grades Java Class In A Course, A Teacher Gives The Following Tests And Assignments: ... Question: Course grades java class In a course, a teacher gives the following tests and assignments: A lab ... course grades java class In a course, a teacher gives the following tests and assignments: A lab activity that is observed by the teacher and...
home / study / engineering / computer science / computer science questions and answers / create...
home / study / engineering / computer science / computer science questions and answers / create a new java file, containing this code public class datastatsuser { public static void ... Your question has been answered Let us know if you got a helpful answer. Rate this answer Question: Create a new Java file, containing this code public class DataStatsUser { public static void... Create a new Java file, containing this code public class DataStatsUser { public static void main...
home / study / engineering / computer science / computer science questions and answers / Modify...
home / study / engineering / computer science / computer science questions and answers / Modify StudentLinkedList Class By Adding The Following Methods:  PrintStudentList: Print ... Your question has expired and been refunded. We were unable to find a Chegg Expert to answer your question. Question: Modify StudentLinkedList class by adding the following methods:  printStudentList: print by call... Modify StudentLinkedList class by adding the following methods:  printStudentList: print by calling and printing “toString” of every object in...
home / study / engineering / computer science / computer science questions and answers / 2....
home / study / engineering / computer science / computer science questions and answers / 2. design an er-diagram for a bank that implements the following requirements. the database ... Question: 2. Design an ER-diagram for a bank that implements the following requirements. The database you d... 2. Design an ER-diagram for a bank that implements the following requirements. The database you design should store information about customers, accounts, branches and employees • Customer: Customers are identified by their SSN....
home / study / engineering / computer science / computer science questions and answers / write...
home / study / engineering / computer science / computer science questions and answers / write a program that in c++: 1.prompts the user to enter a positive integer, think of this ... Question: Write a program that in C++: 1.Prompts the user to enter a positive integer, think of this intege... Write a program that in C++: 1.Prompts the user to enter a positive integer, think of this integer as representing a specific number of pennies. 2. The program...
If computer and information science are foundational to nursing informatics, should computer and information literacy be...
If computer and information science are foundational to nursing informatics, should computer and information literacy be a requirement in all nursing programs at all levels? Why or why not?
In this course, you have learned that computer programming is key to computer science. The ability...
In this course, you have learned that computer programming is key to computer science. The ability to program a succession of instructions to resolve a computing problem is a valuable skill that is integral to many aspects of modern life. You have also seen the versatility and distinguishing characteristics that make Python 3 a popular choice for programmers. End-of-Course Essay Write a 1- to 2-page essay in which you connect this course to your own career or personal life. Imagine...
Research Project including Research Methods Challenges and response of handling social science data ?
Research Project including Research Methods Challenges and response of handling social science data ?
Contrast and discuss the individual demand curve among perfect competition, monopolistic competition and Monopoly.
Contrast and discuss the individual demand curve among perfect competition, monopolistic competition and Monopoly.
What is the purpose of performing a range check in computer programming and data handling?
What is the purpose of performing a range check in computer programming and data handling?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT