Exam Questions Flashcards

1
Q

What size quantum should you use for round robin and why? What is the relationship between size of quantum and context switching?

A

This has issues as switching processes wastes time. Setting quantum to long means slow response. Good rule is 20-50ms. Short quantum - good for interactive systems, good response, poor throughput Long quantum - good for batch systems, bad response, good throughput

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain components of virtual addresses, know how to map virtual and physical pages, what is layout of virtual and physical memories? How big is page table? Be able to do calculations

A

Last bits are for page size and frame size, the remaining bits are the numbers of pages and frames. Last bits being those in the offset range. So if we remove any offset values, we can then say that what’s left is the page number. This is index into page table. Number of page table entries = (Number of bits in physical address - offset) bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain Diagram of Virtual Memory

A

You have a screenshot of this. Beginning of lecture on April 8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Calculate number of page faults

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What’s the relationship between the working set and the size of the page? What sort of page size would you use?

A

….

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Access modify change times - what’s going on? Using stat command

A

lab task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

structure of files

A

the boot block (block 0): contains code to bootstrap the system the super block (block 1): contains summary information for the file system (where to find everything else) blocks for a fixed number of inodes blocks for file data (each block contains a fixed number of disk sectors) read tannebaum

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

how do we use chmod and how do we change read write execute permissions in unix

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens if i change permission on directory to non execute

A

..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is going on with ssh? How do i log into dimefox?

A

ssh dimefox.eng.unimelb.edu.au`

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the max possible file size in bytes of the linux ext2 file system given: 10 data blocks with direct addresses 1 single indirect block 1 double indirect block 1 triple indirect block Assume disk blocks are 1KB and pointes to disk blocks are 4 bytes

A

Use screencap Sun 5 july 4:05pm. 10*1KB: 10KB 1KB + 8 bytes… google

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Write Dekker’s algorithm and explain it

A

….

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Protocol stack

A

do lab tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

define packet switching, speak about pros and cons

A

see other cards

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

http is a protocol. so when you enter an address how does it get to your machine?

A

contact dns server to get IP address or resource, then displays requested file. …… …..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

OSI reference model

A

Operation Systems Interconnection. - layer should be created where a different abstraction is needed - each layer should perform a well defined function (identify this in snippet of c code) - function of each layer should be chosen with a view toward defining internationally standardised protocols - layer boundaries should be chosen to minimise information flow across interfaces - number of layers should be large enough that distinct functions need not be thrown together in same layer out of necessity and small enough that architecture doesn’t become too unwieldy

17
Q

ive got this particular implementation of these layers. the layer has to be at tcp layer. tcp provides whole lot of functionality for me. why do i have to do that? why cant i just provide part of that functionality at lower level? at IP level?

A

18
Q

Talk about the different address which are available to components or devices

A

host and network layers

19
Q

expected to manipulate 32 bit IP address

A

20
Q

When you click on a link what happens

A

lec 1

21
Q

Explain this diagram

A

22
Q

What would you expect to see in page table entry?

A

23
Q

We have a stream of pages that need to be loaded into x frames. I have a limited number of frames. How can we eject pages using FIFO? How many page faults occur?

A

….

24
Q

How do i manage free space (file)

A

structure of files.

25
Q

structure of file system

A

array,