Escolar Documentos
Profissional Documentos
Cultura Documentos
1. concepts of:
Multiprogramming: This concept involves having multiple programs
running concurrently on a computer system. The CPU switches rapidly
between these programs, giving the illusion that they are all running
simultaneously. However, in reality, the CPU is executing instructions
from each program in short bursts.
Single-tasking: In a single-tasking operating system, only one program
can run at a time. The CPU devotes all its resources to executing that
single program until it completes or is interrupted.
Multi-tasking: Multi-tasking refers to the ability of an operating
system to run multiple programs simultaneously. This can be achieved
through time-sharing, where the CPU switches between different
programs to give the appearance of parallel execution.
Multi-processing: Multi-processing involves using multiple CPUs or
CPU cores to execute multiple processes concurrently. Each CPU or
core can work on a separate program or task simultaneously, increasing
overall system performance.
Multi-threading: Multi-threading allows a single process to execute
multiple threads concurrently. Threads are lighter weight than processes
and share resources within the same process. This allows for more
efficient utilization of CPU resources and can improve responsiveness in
applications.
2. time-sharing systems: Time-sharing systems allow multiple users to
interact with a computer system simultaneously by dividing the CPU time
among multiple processes or users. Each user or process is allocated a time
slice during which they can execute their tasks. This gives the illusion of
concurrent execution to each user, even though the CPU is actually rapidly
switching between tasks.
3. relating the concepts to everyday use os:
Windows: Windows operating systems, such as Windows 10, utilize
multi-tasking, multi-processing, and multi-threading extensively. Users
can run multiple programs simultaneously, and Windows efficiently
schedules tasks to utilize available CPU resources. Additionally, modern
versions of Windows support multi-core processors, allowing for multi-
processing capabilities. However, the specifics of time-sharing might not
be directly visible to the end-user as it's managed by the operating
system's kernel.
Linux: Linux distributions, like Ubuntu or Fedora, are known for their
robust support for multi-tasking, multi-processing, and multi-threading.
Linux can efficiently manage system resources, allowing users to run
numerous processes concurrently. Time-sharing is a fundamental concept
in Linux systems, enabling multiple users to interact with the system
simultaneously via terminals or remote connections.
macOS: macOS, the operating system used on Apple Mac computers,
also leverages multi-tasking, multi-processing, and multi-threading to
provide a seamless user experience. Users can run multiple applications
concurrently, and macOS efficiently manages system resources to ensure
responsiveness. Time-sharing capabilities allow multiple users to log in
and use the system simultaneously, typical in enterprise or educational
environments.
4. completing the table:
1. computing:
211 = 2* 210=2KB
220 = 1MB
223 = 8MB
229 = 512MB
237 = 128GB
246 = 64TB
255 = 32PB
byte units
2. Q. consider RAM that can store 1 byte per physical location (i.e., row). Each
location is identified by an address. Each address is expressed in 8 bits (1
byte). What is the size of this memory in bytes?
Method :
1. Find out how many different addresses are possible with 8 bits.
2. Each address corresponds to one byte of memory.
3. Multiply the number of addresses by the size of each memory
location (which is 1 byte).
solution:
1. Number of Addresses: With 8 bits, you can represent 28
different combinations.
28=256
2. Size of Memory in Bytes: Each of these 256 addresses
corresponds to one byte of memory.
So, the size of memory in bytes is 256 bytes.
3. Q. consider a computer with a 32-bit CPU (it can process 32 bits at a time).
The CPU is connected to a byte-addressable central memory (each memory
address corresponds to one byte of data). how much memory can be addressed
in this computer (in multiples of bytes)?
an address is 1 byte, the number of addresses is 232 possible
combinations, then the memory that can be addressed is 1 * 232 = 232
= 4GB.
4. Q. consider a computer with a 16-bit CPU (Central Processing Unit), which
is connected to a word-addressable memory.how much memory can be
addressed in this computer?
number of addresses = 216 , number of bytes in an address = 2 (word
size), so the addressable memory = 2 * 216 = 217 = 128KB