Riverbed Interview Report
- 0of 0 votes
AnswerDesign a class (or several classes) to be used to implement C++ Thread Management. You may use any
- therani.arch October 24, 2012 in United States
underlying thread library you choose (POSIX pthreads, Windows Threads, or some other open-source or
easily accessible threading library). Ideally your Threads should give me a safe method to pass progress
back to the main thread on the progress of the execution or my work that I’ve decided to perform with
your thread.
If something is unclear please note what assumptions you are making.
The following is an example of a test program that would use your Thread class| Report Duplicate | Flag | PURGE
Riverbed - 7of 7 votes
Answers// I've created a thread that does some work and inherits from your base Thread class
- therani.arch October 24, 2012 in United States
class DoWorkThread : public <YourThreadClass>
{...};
int main(){
...
// DECLARE the base class
DoWorkThread example_worker ( data );
// Start the thread
example_worker.start();
...
<other calls you define that I would use>
}| Report Duplicate | Flag | PURGE
Riverbed