Chapter 4 Flashcards

1
Q

Are threads async?

A

Yes. they run at different speeds and can be halted.

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

Different kind of registers?

A

Boolean, integer(M-valued)

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

Degrees of Consistency in registers

A

Safe, regular, atomic

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

When is a MRSW safe?

A

a read() that does not overlap write() returns last value. and if overlap it can return any value within the registers range

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

When is a MRSW regular?

A

A read() that does not overlap a write() returns the last value
If a read() overlaps a write() it returns either the old value or the new value

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

is regular register linearizable?

A

No

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

When is a MRSW register atomic?

A

Each read() returns the last value written

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

how is MRSW safe boolean register created from SRSW boolean register?

A

an array of SRSW registers. for read, read seperate own register, but for every write, write to all

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

difference between safe BooleanMRSW and regular BooleanMRSW.

A

only if new == old value. Safe can return either Boolean Value. Regular can return old/new, but old == new so can only return x (only write value if distinct)

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

how does a Regular M-valued MRSW register write and read?

A

writer: write true to location of X, set lower to false. Reader: read from lower to higher until reads true

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

What are regular register Conditions:

A
  • No read() call should return a value from the future
  • No read() call should return a value from the distant past – only the most recently written non-overlapping value must be returned
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the Atomic register Conditions:

A

regular register conditions +
An earlier read() cannot return a value later than that returned by a later read()
(read should be in correct order

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

Atomic SRSW -> Atomic MRSW

A

every thread in array, write starts at start, iterates through array. read reads only its own array location

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

Who has authority at the root of the DNS?

A

IANA (Internet Assigned Numbers Authority)

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

By who is IANA operated by?

A

ICANN (Internet Corporation for Assigned Names and Numbers)

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

How do you determine the owner of a domain?

A

Enter whois “xx.co.za” command

17
Q

What is a zone file?

A

A file that stores the Domain Info. Defines Resource records. authorative source.

18
Q

what does nslookup do?

A

Show how Domain Names is translated to IP address

19
Q

what does set type=ns do?

A

tells nslookup that we want a pointer to a name server rather than the address associated with the domain

20
Q

What is the difference between FQDN(fully qualified domain name) and a normal domain name

A

Normal = refer to a name within some current domain. FQDN = specifies domain starting at the TLD down to the domain name of interest

21
Q

what does set type=a do?

A

it is Used to specify that you want to query for the Address (A) records associated with a domain name.

22
Q
A