Another thing I don't understand is how can threads be a library in CL ?
Threads cannot be implemented as a library https://www.hpl.hp.com/techreports/2004/HPL-2004-209.pdf https://dl.acm.org/doi/10.1145/1065010.1065042
Threads cannot be implemented as a library https://www.hpl.hp.com/techreports/2004/HPL-2004-209.pdf https://dl.acm.org/doi/10.1145/1065010.1065042