The monitor factory has implemented a synchronization mechanism inter threads, providing three types of synchronization methods to the user mode: mutexes, semaphores, and condition variables. During the implementation process, I believe it is worth mentioning that the following features were added or modified:
Fixed bugs in mutex.rs.
Added a u_window field to the RrosThread structure, which is used for kernel mode and user mode to interact data through shared memory.
As mentioned above, the interaction of some data between kernel mode and user mode adopts shared memory. This change fixed a bug in control.rs, which uses mmap to create shared memory; and it implemented a memory allocator for shared memory.
Added the setting of thread FIFO scheduling strategy and fixed some functions related to thread scheduling.
The
monitor factory
has implemented a synchronization mechanism inter threads, providing three types of synchronization methods to the user mode: mutexes, semaphores, and condition variables. During the implementation process, I believe it is worth mentioning that the following features were added or modified:Fixed bugs in
mutex.rs
.Added a
u_window
field to the RrosThread structure, which is used for kernel mode and user mode to interact data through shared memory.As mentioned above, the interaction of some data between kernel mode and user mode adopts shared memory. This change fixed a bug in control.rs, which uses
mmap
to create shared memory; and it implemented a memory allocator for shared memory.Added the setting of thread FIFO scheduling strategy and fixed some functions related to thread scheduling.
https://github.com/BUPT-OS/RROS/issues/24