Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

LSK2601 Assignment 2 Q&A

Rating
-
Sold
-
Pages
214
Grade
A+
Uploaded on
15-07-2025
Written in
2024/2025

LSK2601 Assignment 2 Q&A In the case of reading from the disk, obviously the caller will have to be blocked (because there are no data for it). What about the case of writing to the disk? - ANSWER-When the process has requested for writing data to the disk, then it all depends on what happens after interrupt. If the calling process gains access back and writes more data, then only the fresh part is written, causing unusual loss. Need the caller be blocking awaiting completion of the disk transfer? - ANSWER-Since the system is maintaining a buffer fro the driver and after interrupt the buffer is written first and then the user data is appended. This means that the data stays secure. Thus, this is not possible. What does the purpose of a system call in an operating system? - ANSWER-How a program requests a service from an operating system's kernel. Condition for fork to fail - ANSWER-If there are no free slots left in the process table. Condition for exec to fail - ANSWER-If the file name given does not exist. Condition for unlink to fail - ANSWER-If the calling process does not have the authority to unlink it. Can the count = write (fd, buffer, nbytes); Call return any value in count other than nbytes? If so, why? - ANSWER-If the call fails, for example because fd is incorrect, it can return −1. It can also fail because the disk is full, and it is not possible to write the number of bytes requested. On a correct termination, it always returns nbytes. Suppose that a 10 MB file is stored on a disk on the same track (track # 50) in consecutive sectors. The disk arm is currently situated over track number 100. How long will it take to retrieve this file from the disk? Assume that moving the arm from one cylinder to the next takes about 1 ms and it takes about 5 ms for the sector where the beginning of the file is stored to rotate under the head. Also, assume that reading occurs at a rate of 100 MB/s. - ANSWER-Size of File = 10 MB...

Show more Read less
Institution
APEA PRE PREDICTOR
Course
APEA PRE PREDICTOR











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
APEA PRE PREDICTOR
Course
APEA PRE PREDICTOR

Document information

Uploaded on
July 15, 2025
Number of pages
214
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$11.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
harrisonwairumbi

Get to know the seller

Seller avatar
harrisonwairumbi Black Hills State University
View profile
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
1 year
Number of followers
0
Documents
135
Last sold
8 months ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions