Lecture 6 Flashcards

1
Q

What is Deadlock

A
  • 2 processes each waiting for the other to release a resource being held so processes can advance.
  • Stuck in a circular wait
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is starvation

A

-Starvation occurs when a process waits for

a resource indefinitely.

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

Deadlock vs Starvation

A

Deadlock implies starvation, but starvation does not imply deadlock

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

Deadlock can occour on what level

A

Hardware (like for memory) or software, for sending messages

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

What are the conidtions for deadlock

A
  1. Mutual exclusion
    only one process may use resource at a time
  2. Hold and wait
    a process may hold allocated resources while waiting to receive others requested
  3. No pre-emption
    no resource may be forcibly taken from a process holding it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is circular wait

A

a closed chain of processes such that each holds ≥ 1 needed by next process in
chain

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

What can we do to prevent deadlock

A
  1. prevention
  2. detection
  3. avoidance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can we prevent deadlock?

A

-Disallow mutual exclusion: so must be one at a time
(but not really feasible)
-Hold and Wait: require a process to request all of its resources before it begins running (effective, but wasteful)
-Pre-emptiom (allow pre-emption): a process requesting resources may be denied and have resources taken away
from it
-OR-
a process already holding resources is denied further requests because another
process is already waiting for [other] resources
(this works, but not really useful for many resources)
-Circular Wait: Assign an ordering to resource types, so requests must be in order
(works, but wasteful)
-Ostrich: Stick you head in the sand and hope for the best (most OSs already do this)

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

OSI Layer 1 needs _____ transfer to occur for the movement of the data.

A

energy

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

Wire is susceptible to

A

Noise and degradation

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

What is wire noise?

A

Since wire is a conductor, any electromagnetic field that moves past it can induce electricity, in the wire. Rise in tempature can indicate this.

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

Two types of signals for transmitting data can be:

A

analog (continuous valued) or digital

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

Copper wire benifit?

A

Short distances, inexpensive, but always has thermal noise

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

Any signal on wire is subject to:

A

Attenuation with distance and noise

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

What do signal amplifers do?

A

Take a weakened signal and repeat to increase distance, both analog and digital

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

The problem of moving data in the real world gets works as you look at the slopes of data transmission and you end up with significant signal _______

A

degradation

17
Q

Data on a channel can be shared by multiple data streams though ______

A

multiplexing

18
Q

What are the 5 ways that we can multiplex:

A
  • Frequency Division (FDM) - like radio spectrum within a cable; not good environment for data due to noise from “baseband loading”
  • Time Division (TDM) - interleaves bits from slower data streams onto a single, faster data stream
  • Statistical (STDM) - takes advantage of idle time on links to get more streams into TDM- not good for data because there may not be any idle time
  • Time Division Multiple Access (TDMA) - used with radio and satellite; transmitters take turns sending in closely spaced slots- generally wasteful of spectrum
  • Wavelength Division (WDM) - sends multiple wavelengths of light through the same fiber (over 100 wavelengths currently)
19
Q

What are the different types of copper wires avaiable for data transmission

A
  • Network cable (twisted pair is most common)
  • Coax
  • power (noisy)
20
Q

What are the differences between lower wave-lengths and higher wave-lengths

A

Lower (higher frequency): bounce off the atmosphere

Higher (lower frequency): go straight, like microwave, and some repeaters like satallites