Thread-Safe: Indicates that the implementation can handle simultaneous read/write operations by threads at any given time whilst avoiding dead-locks and/or race conditions. Note that a "dead-lock" is where two threads are waiting upon each other and a "race condition" is where two threads are trying to access the same resource at the same time (two people trying to get through one door at the same time).
Thread: A light-weight process (normally at user-level) that executes independently of the main process thread ("main( )") which created it. Threads are the core of multi-threading.
Wrapper: An implementation that provides an interface to another encapsulated implementation. The code below is an example of a wrapper.
1 2 3 4 5 6 7
struct ArrayWrapper
{
int Array_[10];
unsignedint Length( ) const;
void Assign( int Index_, int Value_ );
};
so can i just straight up build this as though it was someting like a linked list or are there commands or libraries...i need a keyword that knows its running something dont i :/
Implementing the wrapper isn't difficult, but you may need to incorporate a library for the threads. Thing is, you may need to show your understanding of threads upon presentation of your wrapper. And no, there are no "keywords" for threads.