InterviewSolution
| 1. |
Explain The Reason To Implement A Corba Application With Multi-threading? |
|
Answer» CORBA server applications may be multi-threaded for serveral reasons. A particular CORBA object may support an operation whose implementation performs some blocking routine. This may be a disk READ or database query. Let us assume that the server application processes all CORBA events within a single main thread. This MEANS that the server will be unable to respond to incoming connection requests or invocation requests while the blocking operation is in PROGRESS. Multi-threading can be USED to avoid these sorts of situations. The server can be more accessible if multiple threads are allowed to process (an block during) incoming CORBA events. A single multi-threaded server process supporting many (>25) CLIENTS is much more efficient that many (>25) single-threaded server processes each supporting its own client. Running a single application with multiple threads requires less machine resources than running multiple applications. This advantage can be seen even if the operation invocations are of short duration and non-blocking. CORBA server applications may be multi-threaded for serveral reasons. A particular CORBA object may support an operation whose implementation performs some blocking routine. This may be a disk read or database query. Let us assume that the server application processes all CORBA events within a single main thread. This means that the server will be unable to respond to incoming connection requests or invocation requests while the blocking operation is in progress. Multi-threading can be used to avoid these sorts of situations. The server can be more accessible if multiple threads are allowed to process (an block during) incoming CORBA events. A single multi-threaded server process supporting many (>25) clients is much more efficient that many (>25) single-threaded server processes each supporting its own client. Running a single application with multiple threads requires less machine resources than running multiple applications. This advantage can be seen even if the operation invocations are of short duration and non-blocking. |
|