+ 1
Multicore programming
I see from Javascript that SoloLearn playground has 8 cores: https://code.sololearn.com/WRFqaxzxgn8S/?ref=app Now I would like to use 8 cores even in C/CPP. Here is a trivial program for testing: https://code.sololearn.com/cuJWVSVmb7k7/?ref=app Unfortunately the result is only one core. On other playgrounds you can compile with option "-fopenmp". In this way, for example, wandbox.org will show 3 cores, and tutorialspoint.com (http://tpcg.io/L5U5VL) will show as many as 32 cores! In other words, is there some way to modify compiler options in SoloLearn playground?
1 Answer
+ 1
Sadly, there is no such options as of now ... you could suggest it to the sololearn team though ! It would be nice !
I think you can use pthread though