Hi all,
I am tried to use use_pthread in startup.conf.but still it takes
Tried following option for creating multiple threads

cpu {
        use-pthreads

       main-core 1
       corelist-workers 2,3
}

With this config , code always hit else part of below config  ,
file : src/vlib/threads.c

     if (tr->use_pthreads || tm->use_pthreads)
        {

          for (j = 0; j < tr->count; j++)
            {
              w = vlib_worker_threads + worker_thread_index++;
              err = vlib_launch_thread_int (vlib_worker_thread_bootstrap_fn,
                                            w, 0);
              if (err)
                clib_error_report (err);
            }

        }










*else        {          uword c;          /* *INDENT-OFF* */
clib_bitmap_foreach (c, tr->coremask, ({            w = vlib_worker_threads
+ worker_thread_index++;            err = vlib_launch_thread_int
(vlib_worker_thread_bootstrap_fn,
w, c);            if (err)              clib_error_report (err);
}));*
          /* *INDENT-ON* */
        }

Can somebody help how can I create multiple thread using pthread instead
dpdk_launch_thread?


Regards,
Bindiya

Reply via email to