Closed robert-w-gries closed 3 years ago
There should be a trait, Task, that is implemented by both Process and Thread.
Task
Process
Thread
This will be useful to re-use schedulers and synchronization primitives.
Example:
pub struct Semaphore<T> where T: Task { wait_queue: VecDeque<T>, }
There should be a trait,
Task
, that is implemented by bothProcess
andThread
.This will be useful to re-use schedulers and synchronization primitives.
Example: