What I'm trying to do is IC2 reactor control with some graphic interface:
It draws components durability status, contorls overheating and reads event from keyboard to switch power.
But what happening now is until it draw all components, that takes forever and is painfully slow, it will not react to any event, and will not check overheating
What I want to do is create thread that draws components and continue main program to listen events and check overheating
Now I have this code: https://pastebin.com/BBw1TxYd
I tried to use threads api, but it seems you can not cre