Project 2
- Description:
- Question:
- 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.
- Hint:
- When 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.
- Project Submission:
- You need to submit an electronic version of your project report to the TAs before 23:55 12/31.
- Do not forget writing the names and student IDs of all members in your team in your report.
- Your report should contain:
- the source code of your multi-thread application and your kernel code
- the execution results
- a report describing and analyzing the results of your experiments.
- Late submission is not allowed.
- Demo time
- The demos begin on 3rd Jan., 2023 and end on 5th Jan., 2023.
- Please write your demo time in this
form
before 23:55 12/31.
- The demos will proceed through google meetings. Every member of a team must show up in the team's demo.
- When demonstrating your projects, the TAs will ask you some questions regarding to your projects.
Part of your project grade is determined by your answers to the questions.
- Recommended Linux Distribution: Fedora or Debian.
- Kernel version: versions around Linux 3.9.
- 關於 Project
的一些注意事項 - by 林哲安
- Copy Right:
- 郭垣佑 (yoyo17813 at gmail dot com)
- 連育陞 (110522063 at cc dot ncu dot edu dot tw)