File I/O Flashcards

1
Q

What are the 3 file descriptor constants

A
  1. STDIN_FILENO
  2. STOUT_FILENO
  3. STERR_FILENO
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

What is the file header for the file descriptor symbolic constants

A

<unistd.h>
</unistd.h>

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

What is a file descriptor

A

An integer created and returned when opening a file to refer to

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

What does v-node stand for and what does it mean

A

Virtual Node. V-Node pointers point to a position in memory (node), which holds

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

What does each process get and what is shared regarding file pointers

A

They get their own File Table Entries, but the v-node pointer in the entries points to the same v-node

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

What is an atomic operation

A

An operation that only makes 1 function call

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

What is an issue that can occur regarding non-atomic operations

A

Race conditions can occur between 2 processes

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