The thread created by pthread_create the same with the kernel thread?

前端 未结 1 421
悲哀的现实
悲哀的现实 2020-12-18 17:23

I use the command below to view the maximum number of threads my system allows:

# cat /proc/sys/kernel/threads-max

And the number is 772432

相关标签:
1条回答
  • 2020-12-18 17:38

    You should not print your unsigned long long with %d.

    Use

    printf("... %llu\n", thread_nr);
    

    instead.

    0 讨论(0)
提交回复
热议问题