简体   繁体   中英

Nbr of threads started by JNI_CreateJavaVM()

When I call JNI_CreateJavaVM() on a 24 cores machine with 32GB using Ubuntu 10.10 gcc, it starts 26 threads. It seems like an overkill. Where is the number of threads created can be set? Thank you.

If you don't want to use all cores, you can explicitly set the thread affinity of your process via sched_set_affinity() . (Windows has a similar mechanism).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM