9. Answer the following questions related to the size of a program and memory space.
A) What is it that determines the total amount of virtual memory space a computer system can have?
B) What is it that determines the size of the largest program that can be executed on a single machine that has only one core?
C) What is it that ultimately limits the number of programs that a given machine can run?
9.a) The total amount of virtual memory space can have in a computer system is determined on the amount of physical memory spaces. However, the size of virtual memory space depends on systems. It varies from system to system. For example, in Linux system, the amount of virtual memory space should be double of the amount of physical memory space. Thus, for a PC running with 4GB of RAM should have 8GB swap memory space. But, some other systems like Windows, generally the maximum size of the swap file should be 1.5 times of the amount of physical memory space.
9.b) The size of the largest program that can be executed on a single machine that has only one core is determined on the size of the physical memory space. Since the size of the virtual memory space depends on the size of the physical memory, therefore indirectly, it also depends on the size of the virtual memory.
9. c) In older systems like DOS systems, known as single-task operating system can run one program at a time. In newer systems like . Linux/UNIX/Windows that are known as multi-tasking operating system can run many programs simultaneously. For example, 32-bit Testlimit tool andrunning on a 2GB 64-bit Windows XP system created about 8396 processes. Total number of programs that can run on a system depends upon OS, and physical memory.
9. Answer the following questions related to the size of a program and memory space. A)...
Computer organization and architecture: memory allocation problem help? Perform or evaluate memory allocation in a system that uses paging (20 points) Consider a system that has 64Kbytes of RAM dedicated to the storage of user programs during their execution. The following three programs are being run concurrently on the system. Program A: 20Kbytes; Program B: 31Kbytes; Program C: 17Kbytes. Suppose the system implements virtual memory using paging. The page size is 16Kbytes. At a particular moment, the page tables of...
Write a program using C/C++ to demonstrate the memory leak problem. Execute the program until it cannot proceed anymore. You may have to allocate big chunks of memory iteratively to reach to this point quickly. This is even more so if you are running the program on a 64-bit operating system. Based on your observation and your understanding of the principles of a paging memory management system, answer the following questions: A. How much memory has the program used when...
Computer architecture rence1 (Choone) D Question 21 Regarding the virtual memory system, check all the statements that are true. Each program has its own page table, A program's memory space must be a contiguous physical addresses in the RAM, The user program is responsible for maintaining its own page table, If a computer has 1 GB RAM, the software can be written to use 2 GB of memory. It enables multiple programs to share the computer's memory, each program can...
1. Threads created by a single program share the same memory address space. T/F 2. Threads created by a single program share the same memory stack. T/F 3. Threads created by a single program share the same scheduling state (e.g., Ready, Waiting). T/F 4. Threads created by a single program share the same open files. T/F 5. A thread enters the Running state when the thread scheduler resumes it. T/F 6. The thread_exit() call can immediately garbage collect the exited...
Please answer the following questions about paged memory... A) How much space needs to be allocated in the minimum and maximum cases for a two-level page table for a machine with a 32-bit virtual memory address, a 1K page size, and which has four times as many inner pages as outer pages? Assume any stored page table value requires 32 bits. B) For the two-level paging approach above, if a Translation Lookaside Buffer (TLB) is used and can cache both...
Assume you have: 32-bit addresses, 4KB Page size, 4MB Physical Memory Space, 4KB Cache with 4-way set associative and LRU replacement, 32 Byte Cache block size, 4-entry fully associative TLB. A program to be run on this machine begins as follows: double A[1024]; int i, j; double sum = 0; for( i = 0; i < 1024; i++ ) // first loop A[i] = i; for( j = 0; j < 1024; j += 16 ) // second loop ...
4. A multi-programmed operating system running on a single CPU assigns time slices of CPU time to the virtual machines that run the individual programs. Each virtual machine is given access to the CPU for a certain time (the time slice), during which it will continue to execute its program. The next time slice then goes to another virtual machine, and so on. Assume that each time slice is one millisecond (1/1000 of a second) long and the computer on...
Computer memory is typically organized in a hierarchy with different types of memory providing different size, speed, cost, and volatility trade-offs. Which of the following statements are true: Registers are the fastest memory accessible by machine instructions. Random Access Memory (RAM) is typically divided into regions (segments) dedicated to specific uses by executing programs. Instructions are fetched from Code segments. Temporary values used to support algorithm recursion are stored in Stack Segments. in computer programming, a static variable is a...
can someone help me with these five questions Professional 6. Virtual Machine Error are vou red You use virtual machines on your office computer so that you can run and test software in multiple operating system versions. When you attempt to run one of the virtual machines, you receive an error message that the virtual machine already is running. You are certain that the virtual machine is not running. What steps can you take to correct the problem? 7. Missing...
please answer all 5 questions, thanks. 1. What are the two memory pools for programs running a modern operating system? 2. Given the following program: #includec iostream» using namespace std; void func1(int); int main( int a 5, b 10; func1(a): return e; void func1 (int a) int z[2]; int y a. What is on the stack before the first function call (assume a memory starting address of 0x1018)? b. What is on the stack after the function call is executed...