Scheduling Task in using C++ On linux and Windows machine
I am working on Gateway Simulator Application application.the gateway Streams the video to the client.Gateway Simulator can simulate the 1000 gateway.a user can issue the command like start the recording after 1 hour and record upto 1 hour or may be strem the video at 5'oclock.So basically scheduling the task.
This gateway will run on both windows and linux. Here for 1000 gateway there can be 1000 such request from the user.There need to save this schedule this task some where so that it can executed later.I wanted to know how to implement this.
I am usin开发者_如何学Pythong QT4 along alongwith C++ for this application. Here I can't use any other third party lib .
How to implement this features in C++ or QT
In QT, scheduling can be done with QTime and QTimer.
- Simple: start a timer per scheduled event based on the difference between now and event-time
- more scalable (1000 requests): maintain a container of events and start 1 timer to the first event.
精彩评论