Oh sorry. I have been trying to find out for whole afternoon, why my application does not starts properly and only runs on background using 1 whole core. Google showed nothing on many pages, I've almost gone berserk, and forgot to use the forum search.
Edit: Now with the help of other threads i found, that my project has type "GUI application". I have no idea how it got there, but setting it back to "Console" solves the problem.