This is very useful. Anyway, just on main_lcore, could I launch many
pthreads (with pthread_create) ?

Does this interfere with DPDK?

On Sun, Jun 25, 2023 at 4:49 PM Stephen Hemminger
<[email protected]> wrote:
>
> 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.

Reply via email to