Preview

Deadlock

Good Essays
Open Document
Open Document
1203 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Deadlock
Deadlock occurs when each process in a set is waiting for an event that can only be caused by some other process in that set. Basically, deadlock is an operating system issue that reared its head with the advent of multiprogramming environments. First and foremost, a deadlock cannot occur unless there are at least two processes trying to run concurrently. There are actually four distinct circumstances that must be met for deadlock to occur, which will be discussed shortly, but it is worth noting that it is fundamentally a multiprocessing problem. Mono-processing systems do not have to worry about deadlock. The reason is that deadlock involves resource allocation, and if there is only one process, it has uncontested access to all resources. Only certain types of resources are associated with deadlock, and they are of the exclusive-use, non-preemptible type. That is to say, only one process can use the resource at any given time, and once allocated the resource cannot be unallocated by the operating system, but rather the process has control over the resource until it completes its task. Excellent examples of such resources are printers, plotters, tape drives, etc.. Resources that do not fit the criteria are memory and the CPU. While it is convenient to discuss deadlock in terms of hardware resources, there are software resources that are equally good candidates for deadlock, such as records in a data base system, slots in a process table, or spooling space. Hardware or software, all that matters is that the resources are non-preemptible and serially reusable.
The four conditions that must exist for deadlock are as follows: The first two are described above - mutually exclusive use of resources by the processes and non-preemption (resources cannot be removed from the processes). The third condition is called the 'hold and wait' or 'wait for' condition. This means that processes can maintain possession of a resource and simultaneously request or wait for other

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    The simplest type of multithreading occurs when one thread runs until it is blocked by an event that normally would create a ___________…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    En1320 Unit 1 Research Paper 1

    • 27742 Words
    • 111 Pages

    programs is not new, the renewed and increased interest is aided by certain trends in…

    • 27742 Words
    • 111 Pages
    Powerful Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +• Synchronization: With multiple active processes having potential access to shared address spaces or shared I/O resources, care must be taken to provide effective synchronization. Synchronization is a facility that enforces mutual exclusion and event…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Good Essays

    How Did the Stalemate End?

    • 2271 Words
    • 10 Pages

    The stalemate came about at Christmas 1914 along the Western Front. From there the different countries fought each other in different battles and tried to outflank the other. By March 1918 the stalemate was broken. In this question I will explain why the war ended and why Germany was finally beaten.…

    • 2271 Words
    • 10 Pages
    Good Essays
  • Better Essays

    IT 600 Module One Lecture

    • 1256 Words
    • 5 Pages

    Since a CPU can run only one process at a time, process management must handle the…

    • 1256 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    In politics, gridlock or deadlock or political stalemate refers to a situation when the laws that satisfy the needs of the people are difficult to pass. The gridlock occurs when the proportion of bills passed and the legislative agenda decreases. In addition, the gridlock also can occur when the President and the majority in one or both houses of Congress are of different political parties. Achieving consensus on the new law is difficult when there are parties with such opposition point of views. The main causes Gridlock in Congress might be the worrying about the carry on indefinitely of new laws, the competition over "winning" and "losing.", and the fearing of change.…

    • 1383 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Conflict

    • 794 Words
    • 3 Pages

    Step 1. Bring to mind a specific situation in each of the conflict style categories noted.…

    • 794 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    The first of the four failures in the distributed system is Fail-Stop and this is when a halting failure occurs with a type of notification to other components, and this can be when a network file server is in the process of telling its clients it is about to stop executing, and in the process the internal state and the contents connected to the volatile storage can be lost.…

    • 998 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    2) The level of activity on the network is also a important factor. The network is limited by the amount of data it can transmit at a point in time. This is called the bandwidth. Thus if the level of activity on the network is very high or exceeding the allowed bandwidth, then any further data to be transmitted will have to wait/ be queued.…

    • 1024 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Conflict

    • 682 Words
    • 3 Pages

    Pyle’s idealism of his own ideologies ultimately forces Fowler’s hand, has his own views against Communism and the actions instigated by his own burning belief, and creates an un-ignorable threat to not only himself but those around him. Fowler’s interpretation of his associate’s actions throughout the story spurs his own (usually cynical, self-centered) ways to be quickly converted into desperate against Pyle, planning…

    • 682 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Conflict

    • 783 Words
    • 4 Pages

    Famous painter Pablo Picasso’s early 1900’s painting of the “Weeping Woman” presents the severe suffering that is caused to women through conflict. Representing a woman devastated by the effects of the Spanish Civil War, Picasso displays a face that is etched with a universal pain felt by all women who have been affected through the loss of men to war. The tears streaming down her excoriated face shows the suffering caused by a woman who has clearly felt the true effect of a conflict. Although millions of men have lost their lived and been damaged physically through war, it is clearly devastated through the…

    • 783 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Conflict

    • 254 Words
    • 2 Pages

    The true test of someone’s character is not determined by how we deal with conflict in our life, but how we deal with all the aspects of our lives.…

    • 254 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Conflict

    • 521 Words
    • 2 Pages

    'In times of conflict ordinary people can behave in extraordinary ways' Sometimes to achieve what we want, we may have to act or do in a certain way against ones values that can lead to conflict.…

    • 521 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    conflict

    • 1293 Words
    • 6 Pages

    Muslims began arriving to the New World as early as the 15th century during the slave trade. It was estimated that about 14 to 20 percent of enslaved West Africans were Muslims (U.S. State Department, 2010). On the other hand, Muslims‟ voluntary migration to the United State began between late 19th to early 20th century. A number of Middle Eastern countries like Lebanon, Syria, Egypt, and Palestine contributed to such early immigration to the U.S. Since then, Muslim immigration to the country increased particularly in the post-world war II era. Most new Muslim immigrants were college students who came to study at American universities. In the end, the majority of Muslim immigration to the United States has come from Southeast Asia like Pakistan, Bangladesh, and Indonesia. In this respect, 56 percent of U.S. born Muslims described themselves as black, 31 percent white, and 2 percent Asian. On the other hand, about 44 percent of foreign born Muslims identified themselves as white, 28 percent Asian, and 18 percent associated themselves with a mixed or other racial affiliation. Just 10 percent of foreign born Muslims reported that they were black. Likewise, Muslim Americans vary in their ethnic and cultural backgrounds. For instance, 26.2 percent of Muslim Americans described themselves as Middle Eastern Arabs, 24.7 percent South Asians, 23.8 percent African Americans, 10.3 percent Not Arab Middle Eastern, 6.4 percent East Asian, and 11.6 percent associated themselves with other ethnicities. Finally, it is important to understand the difference between Arab and Muslim Americans. Although Arab and Muslim Americans overlap with some Arabs are Muslims, almost two third of Arab Americans are non Muslims and most Muslim Americans are non Arabs . Muslim Americans also belong to various religious traditions in Islam including both Sunnis and Shia (Shiites). Based on a 2006 study by the Council on American-Islamic Relations (CAIR), about 40…

    • 1293 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Stuck in the Middle

    • 312 Words
    • 2 Pages

    Michael Porter (Harvard Business School) originally discussed the problem of “stuck in the middle.” He said that the profitability of firms depends on the firm’s position and competitive advantage in that industry. He argued that competitive advantage derives from one of two strategies: cost leadership or differentiation of products or services.…

    • 312 Words
    • 2 Pages
    Satisfactory Essays