search
Log In

Recent questions tagged tanenbaum

0 votes
1 answer
1
Consider the following state of a system with four processes$, P1, P2, P3,$ and $P4,$ and five types of resources, $RS1, RS2, RS3, RS4,$ and $RS5:$ Using the deadlock detection algorithm described in Section $6.4.2,$ show that there is a deadlock in the system. Identify the processes that are deadlocked.
asked Oct 30, 2019 in Operating System Lakshman Patel RJIT 66 views
0 votes
0 answers
2
0 votes
1 answer
3
In order to control traffic, a network router, $A$ periodically sends a message to its neighbor, $B,$ telling it to increase or decrease the number of packets that it can handle. At some point in time, Router $A$ is flooded with traffic and sends $B$ a message ... size from $0$ to a positive number. That message is lost. As described, neither side will ever transmit. What type of deadlock is this?
asked Oct 30, 2019 in Operating System Lakshman Patel RJIT 29 views
0 votes
1 answer
4
0 votes
0 answers
5
0 votes
1 answer
6
0 votes
2 answers
7
0 votes
0 answers
8
Suppose four cars each approach an intersection from four different directions simultaneously. Each corner of the intersection has a stop sign. Assume that traffic regulations require that when two cars approach adjacent stop signs at the same time, the car on the left must ... (indefinitely) for the car on the left to proceed. Is this anomaly a communication deadlock? Is it a resource deadlock?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 52 views
0 votes
0 answers
9
City streets are vulnerable to a circular blocking condition called gridlock, in which intersections are blocked by cars that then block cars behind them that then block the cars that are trying to enter the previous intersection, etc. All intersections ... the intersection is also available. Which prevention algorithm is this? Can you provide any other prevention algorithms for gridlock?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 29 views
0 votes
1 answer
10
The four conditions (mutual exclusion, hold and wait, no preemption and circular wait) are necessary for a resource deadlock to occur. Give an example to show that these conditions are not sufficient for a resource deadlock to occur. When are these conditions sufficient for a resource deadock to occur?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 23 views
0 votes
0 answers
11
1 vote
0 answers
13
Students working at individual PCs in a computer laboratory send their files to be printed by a server that spools the files on its hard disk. Under what conditions may a deadlock occur if the disk space for the print spool is limited? How may the deadlock be avoided?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 36 views
0 votes
0 answers
15
Write a program to implement multiple timers using a single clock. Input for this program consists of a sequence of four types of commands $(S<int> , T<int>, E<int> , P<int>): S<int> $ sets the current time to $<int>; T$ ... out the values of Current time, Next signal, and Clock header. Your program should also print out a statement whenever it is time to raise a signal.
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 12 views
0 votes
0 answers
16
Write a program to implement the three disk-arm scheduling algorithms. Write a driver program that generates a sequence of cylinder numbers $(0–999)$ at random, runs the three algorithms for this sequence and prints out the total distance (number of cylinders) the arm needs to traverse in the three algorithms.
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 71 views
0 votes
0 answers
18
A notebook computer is set up to take maximum advantage of power saving features including shutting down the display and the hard disk after periods of inactivity. A user sometimes runs UNIX programs in text mode, and at other times uses the $X$ Window System. She is surprised to find that battery life is significantly better when she uses text-only programs. Why?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 25 views
0 votes
1 answer
19
If a CPU's maximum voltage, $V,$ is cut to $V/n,$ its power consumption drops to $1/n^{2}$ of its original value and its clock speed drops to $1/n$ of its original value. Suppose that a user is typing at $1\: char/sec,$ but the CPU time ... value of $n$ and what is the corresponding energy saving in percent compared to not cutting the voltage? Assume that an idle CPU consumes no energy at all.
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 37 views
0 votes
1 answer
21
It has been observed that a thin-client system works well with a $1$-Mbps network in a test. Are any problems likely in a multiuser situation? (Hint: Consider a large number of users watching a scheduled TV show and the same number of users browsing the World Wide Web.)
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 28 views
0 votes
1 answer
22
A thin-client terminal is used to display a Web page containing an animated cartoon of size $400\: \text{pixels} \times 160\: \text{pixels}$ running at $10\: \text{frames/sec.}$ What fraction of a $100$-Mbps Fast Ethernet is consumed by displaying the cartoon?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 26 views
0 votes
0 answers
23
In the text we gave an example of how to draw a rectangle on the screen using the Windows GDI: Rectangle(hdc, xleft, ytop, xright, ybottom); Is there any real need for the first parameter (hdc), and if so, what? After all, the coordinates of the rectangle are explicitly specified as parameters.
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 14 views
0 votes
0 answers
24
0 votes
1 answer
25
Assuming that it takes $2\: nsec$ to copy a byte, how much time does it take to completely rewrite the screen of an $80\: \text{character} \times \text{25}$ line text mode memory-mapped screen? What about a $1024 \times 768$ pixel graphics screen with $24$-bit color?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 36 views
0 votes
1 answer
26
One way to place a character on a bitmapped screen is to use BitBlt from a font table. Assume that a particular font uses characters that are $16 × 24$ pixels in true RGB color. How much font table space does each character take? If copying a byte takes $100\: nsec,$ including overhead, what is the output rate to the screen in characters/sec?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 30 views
0 votes
0 answers
27
The primary additive colors are red, green, and blue, which means that any color can be constructed from a linear superposition of these colors. Is it possible that someone could have a color photograph that cannot be represented using full $24$-bit color?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 8 views
0 votes
1 answer
28
The designers of a computer system expected that the mouse could be moved at a maximum rate of $20\: cm/sec.$ If a mickey is $0.1 \:mm$ and each mouse message is $3$ bytes, what is the maximum data rate of the mouse assuming that each mickey is reported separately?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 15 views
0 votes
1 answer
29
A user at a terminal issues a command to an editor to delete the word on line $5$ occupying character positions $7$ through and including $12.$ Assuming the cursor is not on line $5$ when the command is given, what ANSI escape sequence should the editor emit to delete the word?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 18 views
...