
IPC and scheduling

Quiz
•
Information Technology (IT)
•
Professional Development
•
Easy
Tuan Minh
Used 50+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
The dup2(oldfd, newfd) function
redirect IO on oldfd so that they are performed on newfd
redirect IO on newfd so that they are performed on oldfd
copies the file descriptor oldfd into the file descriptor newfd
copies the file descriptor newfd into the file descriptor oldfd
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
If I call dup2(fd,0) with fd being an opened file
everything read from STDIN is written to the file
everything read from STDIN is read from the file
the file shoud be opened in read mode
the file should be opened in write mode
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
When you create a pipe p
communication goes from p[1] to p[0]
communication goes from p[0] to p[1]
you can read from p[0]
you can read from p[1]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After a dup2(p[0], 0);
you must close(p[0]);
you must close(0); (-10)
you don't have to close anything (-10)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The shmat() function
allow to create a shared memory segment
allow to attach a shared memory segment in an address space
allow to find the location of a shared memory segment
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
with a pipe p, if p is empty
write(p[0] ...) will block
write(p[1] ...) will block
read(p[0] ...) will block
read(p[1] ...) will block
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
with a pipe p, if p is full
write(p[0] ...) will block
write(p[1] ...) will block
read(p[0] ...) will block
read(p[1] ...) will block
8.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
threading allow
to execute several threads in one process
to execute one thread in several processes
to share the process address space between several threads
to execute each thread within a private address space
Similar Resources on Wayground
10 questions
Ice Breaking Koding dan Kecerdasan Artifisial

Quiz
•
Professional Development
10 questions
Webinar Series 13 : Membangun Design UI/UX yang Menarik

Quiz
•
Professional Development
13 questions
M365 for Education Quiz

Quiz
•
Professional Development
9 questions
[FE] Ice Breaking - Introduction to Next JS and Routing

Quiz
•
Professional Development
10 questions
Web Development Mastery

Quiz
•
Professional Development
9 questions
Sources & Sinks: TextIO & FileIO

Quiz
•
Professional Development
10 questions
ATE6123 Fundamental of Wireless Communications - Topic 3

Quiz
•
Professional Development
10 questions
Structure Of C

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade