Question: sched_impl.h (define your data structures here) This is where you will define the data structures stored per scheduler instance (struct sched_queue) and per worker thread
sched_impl.h (define your data structures here)
This is where you will define the data structures stored per scheduler instance (struct sched_queue) and per worker thread (struct thread_info). This will likely include synchronization constructs like semaphores and mutexes, and a list of threads available to be scheduled.
#ifndef __SCHED_IMPL__H__
#define __SCHED_IMPL__H__
struct thread_info {
/*...Fill this in...*/
};
struct sched_queue {
/*...Fill this in...*/
};
#endif /* __SCHED_IMPL__H__ */
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
