currently I am working on porting linux application to Windows. Thus, I encountered a problem related to scheduling. The problem is as follow:
void set_fifo(int prio)
{
struct sched_param sp;
memset(&sp, 0, sizeof(sp));
sp.sched_priority = prio;
if (sched_setscheduler( 0,SCHED_FIFO, &sp) == -1) {
if (errno != EPERM)
terminal_error("sched_setscheduler");
}
}
Does Windows have FIFO scheduling policy ? and how am I going to port this piece of codes to Windows ? Any guidelines and helps is welcomed. Thank You.