@haythem I'm not sure you need to go down the road of RTOS for multithreading on Omega2, the specifics of your design would dictate this, so you'll need to provide more specific details. If it's a button you want to monitor, have you looked at this example: https://onion.io/2bt-omega-iot-button/