Question about Microsoft Windows XP Professional

Open Question

Operating System : Bankers' Algorithm

Consider the following snapshot of a system: Allocation max available A B C D A B C D A B C D p0 0 0 1 2 0 0 1 2 1 5 2 0 p1 1 0 0 0 1 7 5 0 p2 1 3 5 4 2 3 5 6 p3 0 6 3 2 0 6 5 2 p4 0 0 1 4 0 6 5 6 answer the following questions using the banker's algorithm: a. what is the content of the matrix Need. b. Is the system in a safe state? c. If a request from proces P1 arrives for (0,4,2,0), can the request be granted immediately?

Posted by Anonymous on

Ad

2 Suggested Answers

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of.(from cars to computers, handyman, and even drones)
click here to download the app (for users in the US for now) and get all the help you need.
Goodluck!

Posted on Jan 02, 2017

Ad
  • 10406 Answers

SOURCE: c program for banking algorithm to find deadlock.

Nice try. Find an upper-class student to give you one-on-one tutoring with your homework.

Posted on Dec 02, 2009

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

What is the operating machine ?


If you mean operating system then:

An operating system (OS) is a set of software that manages computer hardware resources and provides common services for computer programs. The operating system is a vital component of the system software in a computer system. Application programs require an operating system to function.

Time-sharing operating systems schedule tasks for efficient use of the system and may also include accounting for cost allocation of processor time, mass storage, printing, and other resources.

For hardware functions such as input and output and memory allocation, the operating system acts as an intermediary between programs and the computer hardware, although the application code is usually executed directly by the hardware and will frequently make a system call to an OS function or be interrupted by it. Operating systems can be found on almost any device that contains a computer-from cellular phones and video game consoles to supercomputers and web servers.

Examples of popular modern operating systems include Android, BSD, iOS, GNU/Linux, Mac OS X, Microsoft Windows, Windows Phone, and IBM z/OS. All these, except Windows and z/OS, share roots in UNIX.

Jun 24, 2012 | Computers & Internet

Tip

How to fix No Bootable Media Error Message


FAT (File Allocation Table) is one of the most widely used file systems used now-a-days with various versions of Windows operating systems and memory cards. Every logical partition contains a FAT that consists of file allocation information and the information of free allocation units that need to be assigned to files. Although the FAT file system is reliable, corruption still occurs due to various reasons. In such situations of FAT corruption, your system becomes unbootable, resulting into inaccessibility of data saved in FAT based hard drive. To access the data after FAT file system damage, an easy way is to restore the data from an updated backup. But, with inaccessibility of data backup or backup falling short to restore the required data, an ideal option left is to use an advanced FAT Data Recoveryapplication that can recover the lost data.

To illustrate the above scenario, consider a practical case the below error message pops up when you attempt to boot your system:

“No Bootable Media”

As the above error message appears at the time of booting the system, you wont be able to access the data saved in the hard drive.

Cause:

The above error message because the FAT file system has been corrupted. Few main causes for file system damage are improper system shutdown, human errors, and virus attack.

Resolution:

To isolate the above error message and to access the data after the above error message appears, you will need to follow the below steps:

Run CHKDSK utility to repair the FAT file system. If the problem persists, format the hard drive.

While the latter resolution resolves the above error message completely, it also deletes the data saved on your hard drive. In such cases, if the backup is not available, then you can only recover your formatted data by using an advanced third-party FAT Data Recovery software.

A FAT Partition Recovery utility thoroughly scans a FAT based hard drive and recovers almost all data, even after formatting. The data recovery utility can be downloaded from the Internet.

Stellar Phoenix Windows Data Recovery is an efficient FAT Partition Recovery tool that recover lost, deleted, and formatted data from both FAT (FAT12, FAT16, FAT32, VFAT) and NTFS (NTFS, and NTFS5 ) based hard drives. The detailed help manual attached with the tool allows even a new user to perform recovery easily without any technical knowledge. It supports Windows 7, Vista, XP, 2003, and 2000.

on Jun 30, 2010 | Computers & Internet

2 Answers

I'm trying to print out a manual for the HP Office Pro 8500A Model A910A. I can only find a set-up guide which already came with our new printer. We were told to go online to find the manual but beginning...


HI Linda: Your manuals should be available here. There is a Getting Started Guide and a Setup Poster currently available.

A number of the available downloads including the diagnostic tools have recently been updated. In absence of a more lengthy printed manual you might consider ensuring you have the most up to date versions installed.

Go to Software & Driver Downloads, select your operating sysytem and a list of available downloads for your printer and operating system will open.

If you do not know your operating sysytem, i.e. 32-bit vs. 64-bit, open Control Panel, click on System and check under System Type.

If your printer was purchased in a country other than the USA you might consider looking on the HP site for the country of purchase.

Jan 16, 2011 | Office Equipment & Supplies

1 Answer

I dont know my product


HI, .I M giving you solution to find out the product running on your computer,with snapshot.i think this will be more helpfull to you. please follow the steps:-

1. Find the "My Computer" icon on your computer. (Most people will have it on their Desktops.) my-computer.gif

2. Right Click on the icon and select "Properties."

my-computer-properties.jpg

3. The "System Properties" window will appear. The Operating System is shown here.

system-properties.jpg

goodluck

Jan 12, 2011 | Computers & Internet

1 Answer

Question 1: Find out the reasons those have made the UNIX an amazingly successful operating system. What are the Features on existing UNIX based operating systems like Linux Red Hat, Fedora and Ubantu...


Question 4: Consider the following set of processes that arrive in the ready queue at the same time:

Process CPU time

P1 2

P2 1

P3 4

P4 3

P5 1

P6 2



Consider the following scheduling algorithms: FCFS, SJF and Round Robin (quantum = 1)

(i) What is turnaround time of each process for each of the above

scheduling algorithms?

(ii) What is the waiting time of each process for each of the above

algorithms?

Jan 06, 2011 | Televison & Video

1 Answer

I have a trial version of excel 7 on my computer; it has expired what doI need to buy to enable wha have?


process allocation Max
A B C D A B C D
p1 0 0 1 2 0 0 1 2
p2 2 0 0 0 2 7 5 0
p3 0 0 3 4 6 6 5 6
p4 2 3 5 4 4 3 5 6
p5 0 3 3 2 0 6 5 6

total recourses in a system (r1,r2,r3,r4)=(6,7,12,12)
(i) Calculate available resource martrix & need matrix for state of
system
(ii) determine saftey if Iexits for the system applying banker's
algorithm.
(iii) p3 request for(0,1,0,0) . does this request lead to a deadlock?

Feb 01, 2010 | Microsoft Windows Vista Home Premium with...

2 Answers

How to be solve banker algorithm?example


I m providing you this from my college notes

Banker's Algorithm


* multiple instances of resource types IMPLIES cannot use resource-allocation graph

* banks do not allocate cash unless they can satisfy customer needs when a new process enters the system

* declare in advance maximum need for each resource type

* cannot exceed the total resources of that type

* later, processes make actual request for some resources

* if the the allocation leaves system in safe state grant the resources

* otherwise, suspend process until other processes release enough resources



Banker: Data Structures define MAXN 10 /* maximum number of processes */
#define MAXM 10 /* maximum number of resource types */
int Available[MAXM]; /* Available[j] = current # of unused resource j */
int Max[MAXN][MAXM]; /* Max[i][j] = max demand of i for resource j */
int Allocation[MAXN][MAXM]; /* Allocation[i][j] = i's current allocation of j*/
int Need[MAXN][MAXM]; /* Need[i][j] = i's potential for more j */
/* Need[i][j] = Max[i][j] - Allocation[i][j] */

Notation:

X <= Y iff X[i] <= Y[i] for all i

(0,3,2,1) is less than (1,7,3,2)

(1,7,3,2) is NOT less than (0,8,2,1)

Each row of Allocation and Need are vectors: Allocation_i and Need_i



Banker: Example

Initially:

Available
A B C
10 5 7

Later Snapshot:

Max - Allocation = Need Available
A B C A B C A B C A B C
P0 7 5 3 0 1 0 7 4 3 3 3 2
P1 3 2 2 2 0 0 1 2 2
P2 9 0 2 3 0 2 6 0 0
P3 2 2 2 2 1 1 0 1 1
P4 4 3 3 0 0 2 4 3 1



Banker: Safety Algorithm

* consider some sequence of processes

* if the first process has Need less than Available

* it can run until done

* then release all of its allocated resources

* allocation is increased for next process

* if the second process has Need less than Available

* ...

* then all of the processes will be able to run eventually

* IMPLIES system is in a safe state



Banker: Safety Algorithm

STEP 1: initialize
Work := Available;
for i = 1,2,...,n
Finish[i] = false
STEP 2: find i such that both
a. Finish[i] is false
b. Need_i <= Work
if no such i, goto STEP 4
STEP 3:
Work := Work + Allocation_i
Finish[i] = true
goto STEP 2
STEP 4:
if Finish[i] = true for all i, system is in safe state



Banker: Safety Example

Using the previous example, P1,P3,P4,P2,P0 satisfies criteria.

Max - Allocation = Need <= Work Available
A B C A B C A B C A B C
P1 3 2 2 2 0 0 1 2 2 3 3 2 3 3 2
P3 2 2 2 2 1 1 0 1 1 5 3 2
P4 4 3 3 0 0 2 4 3 1 7 4 3
P2 9 0 2 3 0 2 6 0 0 7 4 5
P0 7 5 3 0 1 0 7 4 3 10 4 7
10 5 7<<< initial system



Banker: Resource-Request Algorithm

STEP 0: P_i makes Request_i for resources, say (1,0,2)
STEP 1: if Request_i <= Need_i
goto STEP 2
else ERROR
STEP 2: if Request_i <= Available
goto STEP 3
else suspend P_i
STEP 3: pretend to allocate requested resources
Available := Available - Request_i
Allocation_i := Allocation_i + Request_i;
Need_i := Need_i - Request_i
STEP 4: if pretend state is SAFE
then do a real allocation and P_i proceeds
else
restore the original state and suspend P_i



Banker: Resource-Request Algorithm [129]

Say P1 requests (1,0,2)

Compare to Need_1: (1,0,2) <= (1,2,2)

Compare to Available: (1,0,2) <= (3 3 2)

Pretend to allocate resources:

Max - Allocation = Need Available
A B C A B C A B C A B C
P0 7 5 3 0 1 0 7 4 3 2 3 0<<<
P1 3 2 2 3 0 2<<< 0 2 0<<<
P2 9 0 2 3 0 2 6 0 0
P3 2 2 2 2 1 1 0 1 1
P4 4 3 3 0 0 2 4 3 1

Is this safe? Yes: P1, P3, P4, P0, P2

Can P4 get (3,3,0)? No, (3,3,0) > (2,3,0) Available

Can P0 get (0,2,0)? (0,2,0) < (2,3,0) Available

Pretend: Available goes to (2,1,0)

Thanks And Regards

May 13, 2009 | Microsoft Windows XP Professional

1 Answer

C program for banking algorithm to find deadlock.


Nice try. Find an upper-class student to give you one-on-one tutoring with your homework.

Apr 17, 2009 | Microsoft Windows XP Professional

1 Answer

Nec 17'' multisync lcd monitor not working properly


What is the problem? Did you try plugging it into another working computer?

Mar 03, 2017 | NEC AccuSync LCD71VM 17" LCD Monitor

1 Answer

Application Error


better uninstall the program and reinstall it..





Minimum System Requirements
Software
The 32-bit version of Autodesk 3ds Max 2009 is supported on any of the following operating systems:
* Microsoft® Windows Vista® operating system
* Microsoft® Windows® XP Professional (SP2 or higher) operating system
The 64-bit version of 3ds Max 2009 is supported on any of the following operating systems:
* Microsoft Windows Vista
* Microsoft Windows XP Professional x64
3ds Max 2009 30-day trial version requires the following browser:
* Microsoft® Internet Explorer® 6 or higher internet browser
3ds Max 2009 30-day trial version requires the following supplemental software:
* DirectX® 9.0c application programming interface (required)
* Some features of 3ds Max 2009 software are only enabled when used with graphics hardware that supports Shader Model 3.0 (Pixel Shader and Vertex Shader 3.0). Check with your manufacturer to determine if your hardware supports Shader Model 3.0.
Hardware
At a minimum, 3ds Max 2009 32-bit requires a system with:
* Intel® Pentium® 4 or AMD Athlon™ XP or higher processor
* 512 MB RAM (1 GB recommended)
* 500 MB swap space (2 GB recommended)
* Hardware-accelerated OpenGL® application programming interface and Direct3D® application programming interface supported
* Microsoft Windows – compliant pointing device (optimized for Microsoft IntelliMouse)
* DVD-ROM drive
Note: Apple® computers based on Intel processors and running Microsoft operating systems are not currently supported.
At a minimum, 3ds Max 2009 64-bit requires a system with:
* Intel EM64T, AMD Athlon 64 or higher, AMD Opteron™ processor
* 1 GB RAM (4 GB recommended)
* 500 MB swap space (2 GB recommended)
* Hardware-accelerated OpenGL and Direct3D supported
* Microsoft Windows – compliant pointing device (optimized IntelliMouse)
* DVD-ROM drive

Nov 03, 2008 | Computers & Internet

Not finding what you are looking for?
Microsoft Windows XP Professional Logo

Related Topics:

24 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2851 Answers

Piyal Perera
Piyal Perera

Level 3 Expert

528 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18402 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...