
Câu hỏi workshop training FW - IPC
Quiz
•
Professional Development
•
Professional Development
•
Hard
Trang Hoai
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Thứ tự các vùng nhớ của Process từ địa chỉ thấp tới cao
(The order of memory segment in a process is from low to high address)
text, heap, stack, data
data, text, heap, stack
text, data, heap, stack
stack, heap, text data
data, heap, stack, text
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Địa chỉ kết thúc vùng nhớ "program code" của một process
(End of "program code" segment)
0x08048000
global symbol etext
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Shared memory sẽ được map vào giữa không gian vùng nhớ nào của Process
(Shared memory will be mapped into which memory segment of the process)
Text - Data
Data - Heap
Heap - Stack
Stack -
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương pháp nào cho phép người dùng thay đổi kích thước của shared memory
(Which method allows users to resize shared memory)
System V
POSIX
Cả 2 (Both are correct)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
IPC Shared Memory có thể sử dụng để chia sẻ memory giữa các process trên các máy tính khác nhau không
(Can IPC Shared Memory be used to share memory between processes on different computers)
Có (yes)
Không (no)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
shmid = shmget(key, 100, 666|IPC_CREAT|IPC_EXCL);
Nếu share memory id tương ứng với key chưa tồn tại thì lệnh trên trả về:
(If the shared memory ID corresponding to the key does not exist, the above command returns)
shmid = -1
shmid = 0
shmid > 0
shmid < 0
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Sau khi API shmctl được gọi thì (After the shmctl API is called, then):
{code}
key_t key = ftok("/tmp/test_shm", 1);
int shmid = shmget(key, 100, 0666|IPC_CREAT);
char str = (char) shmat(shmid, (void*)0, 0);
strcpy(str, "Hello world !");
shmctl(shmid, IPC_RMID, NULL);
while (1)
sleep(10);
{code}
Process sẽ được detach khỏi shared memory segment.(The process will be detached from the shared memory segment)
Shared memory segment sẽ bị xóa bị xóa ngay lập tức.(The shared memory segment will be immediately deleted)
Không câu nào chính xác.(No correct anwser)
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Pre and Post Test
Quiz
•
Professional Development
15 questions
MCES_Fundamentals_Q2
Quiz
•
Professional Development
15 questions
Module 7: Composants du bloc moteur
Quiz
•
Professional Development
10 questions
eLearning introduction Treasure Hunt
Quiz
•
Professional Development
13 questions
Agile Knowledge Quiz
Quiz
•
Professional Development
10 questions
Chapter 3: This Is Your Brain on Culture
Quiz
•
Professional Development
10 questions
Foundations of Reading
Quiz
•
University - Professi...
10 questions
Ed Tech Frameworks
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
