On Tue, 20 Jun 2023 17:33:59 +0200 Antonio Di Bacco <[email protected]> wrote:
> Is it possible to launch multiple threads on the main lcore? > Who will be in charge of scheduling those threads on the main lcore > (main lcore is isolated)? > > Not the OS I suppose. > > Thank you If you start trying to add threads like this, it will lead to all sorts of locking problems. When one thread gets the lock and then gets preempted by the scheduler and another thread (bound to same lcore) tries to acquire the lock, it will spin and wait until the first thread is rescheduled. DPDK was designed for dedicated threads per lcore.
