
Quiz on IPC and Synchronization

Quiz
•
Information Technology (IT)
•
University
•
Easy
Tung Doan
Used 5+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 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 should 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);
you don’t have to close anything
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, 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, if p is full
write(p[0] …) will block
write(p[1] …) will block
read(p[0]…) will block
read(p[1]…) will block
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python for loop/lists

Quiz
•
9th Grade - University
18 questions
Concurrent Programming Languages Quiz

Quiz
•
University
11 questions
G12 - Logic Gates and Processing

Quiz
•
12th Grade - University
20 questions
10 теги HTML

Quiz
•
10th Grade - University
20 questions
HT - 05 Define el concepto de Machine Learning

Quiz
•
University
15 questions
Laguna_University

Quiz
•
University
20 questions
Quiz on Knowledge Representation in Artificial Intelligence

Quiz
•
University
12 questions
Mail Merge

Quiz
•
10th Grade - University
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
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University