robert-w-gries / rxinu

Rust implementation of Xinu educational operating system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make scheduling components generic to support either Processes or Threads

robert-w-gries opened this issue · comments

There should be a trait, Task, that is implemented by both Process and Thread.

This will be useful to re-use schedulers and synchronization primitives.

Example:

pub struct Semaphore<T> where T: Task {
    wait_queue: VecDeque<T>,
}