許富皓教授好人一生平安
Group: 第 14 組
Project 1 可以參考這篇
Goal
Write a program using the system call you wrote in Project 1 to check how memory areas are shared by two processes that execute this program simultaneously.
The memory areas include code segments, data segments, BSS segments, heap segments, libraries, stack segments.
HintWhen making your check, both related processes must be in progress. Hence you may need to use function sleep() to guarantee this requirement.
Inside the Linux kernel, you need to use function copy_from_user() and function copy_to_user() to copy data from/to a user address buffer.
NinjaPizza changed 2 years agoView mode Like Bookmark