Riverbed Interview Questions
- 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 - 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 - 1of 1 vote
AnswersDesign a class (or several classes) to be used to implement C++ Thread Management. You may use any
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
// I've created a thread that does some work and inherits from your base Thread class
- therani.arch October 24, 2012 in United Statesclass 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 Software Engineer / Developer Threads - 0of 0 votes
AnswersDesign 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
// I've created a thread that does some work and inherits from your base Thread class
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 - 0of 0 votes
Answershow to design a file system, which data structure?
- superffeng September 27, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer - 0of 0 votes
AnswersHow to check whether a integer is a prime?
- superffeng September 27, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Algorithm - 0of 0 votes
AnswersAn unsorted array of n integers, and range of integers are 1 to n. In the array, one integer has a duplicate , and one integer is missing. How to find the duplicate number and the missing number?
- superffeng September 27, 2012 in United States
What if array are sorted?| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Algorithm - 0of 0 votes
AnswersHow to check a loop in a link list?
- superffeng September 27, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer - 0of 0 votes
AnswersIn a car odometer, what is the smallest number of miles you can travel to go from one palindromic odometer reading to the next palindromic odometer reading? (e.g. 003300 -> 004400 would be 1100 miles).
- unknown January 25, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWrite a program that finds the largest palindromic number that’s the result of multiplying two four-digit numbers (1000 through 9999) without converting the number to a string first (i.e. a pure-numeric palindrome test)
- unknown January 25, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven an array of ints (positive and negative) and a sum, find 2 numbers in the array whose sum equal to input sum.
- capricornkmu January 14, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Coding - 1of 1 vote
AnswersGiven m sorted arrays each of size n, merge the arrays into one big array.
- capricornkmu January 14, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Algorithm - 0of 0 votes
Answersimplement function:
- capricornkmu January 14, 2012 in United States
char * get_ip_address(int ip_address)
basically convert input ip_address to user-friendly format a.b.c.d| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Coding - 0of 0 votes
AnswersCheck if tree 1 is sub tree of another tree 2
- capricornkmu January 14, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Coding - 0of 0 votes
AnswersGiven 2 sorted arrays, find the kth element in the merged array.
- capricornkmu January 14, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Coding - 0of 0 votes
AnswersGiven 10 billion integers in a disk, find the integer not present. You have < 10 MB of memory.
- capricornkmu January 14, 2012 in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Algorithm - 0of 0 votes
AnswerWhat happens to a program after you compile till its created to an executable.
- fighter April 07, 2011| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Algorithm - 0of 0 votes
AnswersHow does malloc work ?
- Bandiccot March 12, 2011| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Computer Architecture & Low Level Linux Kernel Operating System - 0of 0 votes
AnswersDesign a event driven webserver
- Anonymous September 28, 2010| Report Duplicate | Flag | PURGE
Riverbed - 0of 0 votes
AnswersImplement a semaphore using a mutex
- raady April 25, 2010| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Threads - 0of 0 votes
Answershow is a system call executed.. when the API resides in the user space how are u still able to execute kernel code.
- raady April 25, 2010| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer C++ - 0of 0 votes
Answerswhat all errors is possible if u write past the array bounds
- raady April 25, 2010| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer C++ - 0of 0 votes
AnswerExplain the difference between Memory mapped I/O and DMA
- raady April 25, 2010| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Computer Architecture & Low Level - 0of 0 votes
Answerwhat does fork do, can the child process use the fd's immediately
- raady April 25, 2010| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer C++ - 0of 0 votes
AnswersWrite code to implement the 'wc -l' feature..
- dnivra April 25, 2010| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer C++ - 0of 0 votes
Answerwhat is new in C++, and operator, function, functor?
- dnivra April 25, 2010| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer C++ - 0of 0 votes
AnswersDifference between a process & thread .If one thread gives a pointer to a variable in its stack to another thread will it be able to access it .Can 2 processes have a shared variable..or is it possible only b/w 2 threads.
- raady April 22, 2010| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Threads - 0of 0 votes
AnswersDifferentiate between threads and processes
- dnivra April 21, 2010
What are spin locks, are they better then mutex ?| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Linux Kernel - 0of 0 votes
AnswerWhat are virtual functions?
- dnivra April 21, 2010| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer C++