Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Solved Assignments
Asked Questions
Answered Questions
define the division of labour between client and servergiven our definition of client - server as the interaction between dispersed application logic
explain the os2 operating systemlike netware os2 manage resources at three levels as shown in figure 45 resources may be maintained at the session
define the tlsfreetlsindex functionthis function should be called to free a tlsindex allocated by tlsalloc it would be executed when there are no
explain the tlsgetvalue tlsindex functionexecuting this function will return the thread local storage data associated with this thread the pointer
explain the tlssetvalue tlsindex dataptrfunctionthe tlssetvalue function associates the dataptr passed as a parameter as local storage for
explain the tlsalloc voidthis function is used to allocate a tls indexany subsequent tls function calls will require the handle returned from
explain the thread local storage tls windows nt provides unique functions for per-thread data management thread local storage tls is a
define the windowsntwindowsnt provides a two-level approach to resource management process and thread the process is the uppermost level and contains
define unixwareunixware manages resources at the process level each resource allocated to the application is actually allocated to the process
explain the thread contextual data threads in net ware carry additional context as well per-thread stacks errno net ware errno terrno and others
grouping threads that execute similar functions thread groups are generally used to group threads that execute similar functions of the
explain the resource ownership by platformownership of data items may further be complicated by concepts defined in certain operating systems each
determine the requiring variables on the scope of a threadit is very common in server application programs to require variables on the scope of a
explain the per thread scopingthread-level programming introduces new twists for application-level variable scoping threads are commonly used in one
define the global vs local variablesit is also important to discuss the scope of resources being granted to the application program variable
explain the resource ownership and controloperating systems are required to handle many different types of resources cpu memory and io devices
explain doscreatethread functions used in the os2 doscreatethreadampthreadidmythreadfunctionargflagsstacksizedoscreatethread creates a thread
define the os2 threads codethe sample program in listing is very similar to the netware example os2 commands are substituted for the pseudocode
explain the sleep ms function this call places the current thread in a suspended state for the number of milliseconds passed as the parameter ms
explain the exitthread function used in the windows ntexitthreadexitcodethe exitthread call is made to end the currently running thread if the
explain the scheduleworktodo function used in netwarescheduleworktodomythread function arg worktodothe scheduleworktodo function is specific to
explain the threadswitchwithdelay function used in netwarethreadswitchwithdelay this command is used when threads are waiting for an event or
explain the threadswitch function used in the netwaresince netware 3 and 4 are nonpreemptive environments it may be necessary for the application
explain the beginthread function used in the netware example codebeginthreadmythread function stacksize argbeginthread creates a thread and places it
developing code with threadswriting code to support a thread-based implementation is very straightforward simple apis are presented to the developer