I need to develop three programs, and they should use some pthreads, I can't use QThread cause theacher said to use native threads.
The first program is a PLC simulator with:

10 analogic in;
10 analogic out;
10 digital in;
10 digital out;

I think I can use a pthread to create the "in" random values, but when I call the method to set the new values in QSpinBox, the frontend freezes!!
Using cout, I see that the values are been generated, and some X errors messages are shown, some have this: "(RENDER)". I think is just a render problem, but I don't know what can solve it!
Unfortunately, I don't have the source in these computer I'm using. I'll post som sources later, but someone have an ideia of what is happening??