it doesn’t matter if you use Online compiler or not.
It matter about MbedOS version (must be 5+) and configuration (must be without Bare metal profile).
I tried to import and compile the first example from page what you mentioned and compilation is OK.
Thanks for your help so promptly!!!
Actually I just asked the wrong question. It should be ‘Online Simulator’ instead of the ‘Online Complier’
Do you know how to solve it?
The online simulator does not support threads, sadly.
I will say, my lab and another lab have been collaborating on mbed-benchtest, which provides a simulated RTOS scheduler running on a desktop PC. However currently it can only simulate Thread and the other RTOS classes, not any other of Mbed’s functionality.