How to change the number of concurrency threads in MySQL

To change the number of concurrency threads in MySQL

Open my.cnf and set the innodb_thread_concurrency.

innodb_thread_concurrency = 20

it allow 20 concurrent threads.

To set this to unlimited
innodb_thread_concurrency = 0