MQL5 How to run two while loops at the same time

 

Hi,

How can I run two while loop functions at the same time ? I want to do this with multi-threading but I guess there is no multi-threading in mql5.

Multi-threading example in python:

import threading

## While loop
def some_function():
    while True:
        print("Another thread function")

thread = threading.Thread(target = some_function) # One thread
thread.start()

thread_2 = threading.Thread(target = some_function) # Two thread
thread_2.start()

# Finally, two while loops are running.
Reason: