• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 487
  • Last Modified:

Operating Systems Environment

I'm doing a self study on my own and have gotten stuck on this question. Can any expert here help me out?

For the two systems described below, given that all of the devices are of the same. please help me answer these questions if you can:

a)      Determine the remaining needs for each job in each system.
b)      Determine whether each of the systems is safe or unsafe.

System A
System A has 12 devices; only 1 is available.

Job #      Devices Allocated      Maximum Required      Remaining needs
1            5                  6
2            4                  7
3            2                  6
4            0                  2

System B
System B has 14 devices; only 2 are available.

Job #      Devices Allocated      Maximum Required      Remaining needs
1            5                  8
2            3                  9
3            4                  8
0
fghabin
Asked:
fghabin
  • 3
  • 2
1 Solution
 
arnoldCommented:
System A is safe.
System B is unsafe.

safety is determined by having a way to complete all jobs.
0
 
fghabinAuthor Commented:
IThanks for your response Arnold. I'm very new to this. how do you complete all jobs and whats the formula calculate/determine the remaining needs?
0
 
arnoldCommented:
You have a job and the number of resources it was already allocated and the maximum number of resources it needs. Once the job is done, the resources of the job are released.

Lets say you were asked to build a shelf. You have been given a saw, and need a hammer.
Job:                           Allocated resources                              Maximum
Build shelf                          1                                                     2

Once you are given a hammer you can complete the task of building a sheld at the end of which a saw and hammer will become available for other tasks.
0
 
fghabinAuthor Commented:
Thanks Arnold, it makes more sense now and I think I get it now. So I created the question below to test my knowledge.
System A
The following system (X) has 15 devices and only 1 is available.
Job #      Devices allocated   Max. required
1                   5                               14
2                   7                               10
3                   2                                 3

System B
The following system (Y) has 19 devices and only 1 is available.
Job #      Devices allocated    Max. required
1                  10                              18
2                   3                               10
3                   5                                 6

So I think both System A and System B are UNSAFE. Do you agree?
0
 
fghabinAuthor Commented:
After reviewing this again, I think System A is safe and System B in unsafe
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now