[PATCH] eal/unix: allow creating thread with real-time priority

Stephen Hemminger stephen at networkplumber.org
Wed Oct 25 17:08:52 CEST 2023


On Wed, 25 Oct 2023 15:44:25 +0200
Thomas Monjalon <thomas at monjalon.net> wrote:

> > > 
> > > I'll try to pass the test by adding a sleep in the test thread.
> > >   
> > 
> > "sched_yield()" rather than sleep perhaps? Might better convey the
> > intention of the call.  
> 
> Do we have sched_yield on Windows?

Windows has an equivalent but sched_yield() won't work here.
Since the DPDK thread is still higher priority than the kernel thread,
the scheduler will reschedule the DPDK thread. You need to sleep
to let kthread run.


More information about the stable mailing list