Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

LSK2601 Assignment 2 Q&A

Beoordeling
-
Verkocht
-
Pagina's
214
Cijfer
A+
Geüpload op
15-07-2025
Geschreven 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...

Meer zien Lees minder
Instelling
APEA PRE PREDICTOR
Vak
APEA PRE PREDICTOR











Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
APEA PRE PREDICTOR
Vak
APEA PRE PREDICTOR

Documentinformatie

Geüpload op
15 juli 2025
Aantal pagina's
214
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$11.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kan je een ander document kiezen. Je kan het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
harrisonwairumbi

Maak kennis met de verkoper

Seller avatar
harrisonwairumbi Black Hills State University
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
2
Lid sinds
1 jaar
Aantal volgers
0
Documenten
135
Laatst verkocht
8 maanden geleden

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen