How to implement multithreaded QT console mode?
Recently in a simulated memory allocator function, anyone want to according to the process of creating a group on the execution time to delete the execution of the process on time, but because the mian function inside me is in accordance with the while loop and cin to create the process, if can't achieve in the process of waiting for cin time calculation, feeling can only use multithreading to achieve, a thread to calculate time, wait a thread to execute cin, but when I was in the realization of simple version, window mode seems to be no way to simultaneously,
This is my definition Mythread, _______________________________________
# # ifndef MYTHREAD_H
# define MYTHREAD_H
#include
#include
#include
#include
#include