Can android’s Handler / HandlerThread be replaced by normal thread in C++?

  android-handler, android-handlerthread, c++, java

I’m new in java and android. I have a code which contains android.os.Handler and android.os.HandlerThread. Now I need to implement this code to C++ in Windows/Linux. As far as I know the reason why we use Handler in android is because it is related to UI.

If my C++ app doesn’t have UI, can I just replace them (including looper, message queue) with regular thread such as pthread or std::thread ? Or Handler has more important roles?

Source: Windows Questions C++