Home > OS >  Help linux0.11 problem
Help linux0.11 problem

Time:10-05


Linux 0.11 is a modern operating systems that support the multi-process concurrent, already pass the interruption in the kernel part, the way of open interrupt lock mechanism, so as to support the execution atomic operations, namely in the process of multiple access to a Shared core data is used to implement mutual exclusion and synchronization, through the use of Linux 0.11 kernel provides the locking mechanism, realize the semaphore, reference Linux0.11 kernel semaphore mechanism of tutorials provide related code, the author analyzes the function implementation semaphore mechanism function, the invocation of the relationship between data structure and function, complete the following work:
(1) study analysis Linux0.11 kernel tutorial given producer consumer problem of code;
(2) is realized in Linux0.11 kernel semaphore system calls, and then use the semaphore mechanism implemented in multiple concurrent program problem of reader writer, the reader writer question rules: (1) allows multiple readers can perform a read operation on files at the same time; (2) only allows a writer to write information in the file; (3) any writer before finish write operation does not allow other readers or written work; (4) writer to write before operation, should let the existing reader and writer at all;
(3) the use of Linux0.11 sleep_on function provided by the kernel and the semaphore wake_up function block and wake up;
(4) the results of the above two methods of semaphore implementation for testing and comparison;

Requirements:
1, learn Linux0.11 kernel source code analysis, design and modify the algorithm and the code of the specified in the functional modules, and verified by testing program design results,
Lesson 2, set using Engintime Linux Lab experiment platform to edit, compile and debug Linux0.11 kernel,
3, the students in a group form complete software project analysis, design, implementation, and other links, and report writing standards,



  • Related