InterviewSolution
| 1. |
Can Multiple Instances Of The Same Stack Entity Run On One Processor ? |
|
Answer» This depends upon the operating system. In OS like Solaris, WINDOWS NT etc., where each instance / EXECUTION of the stack entity has its own data area, this is possible. In RTOS like VxWorks etc., the global variables are MAPPED to a fixed location in memory (flat memory structure). Hence, multiple instances of the stack entity access the same data area for globals, leading to clash. This depends upon the operating system. In OS like Solaris, Windows NT etc., where each instance / execution of the stack entity has its own data area, this is possible. In RTOS like VxWorks etc., the global variables are mapped to a fixed location in memory (flat memory structure). Hence, multiple instances of the stack entity access the same data area for globals, leading to clash. |
|