Please enable JavaScript.
Coggle requires JavaScript to display documents.
Operating System - Coggle Diagram
Operating System
Multiprocessing
-
-
-
-
Parallel processing is a method in computing of running two or more processors (CPUs) to handle separate parts of an overall task. Breaking up different parts of a task among multiple processors will help reduce the amount of time to run a program.
-
Threads
-
-
Is a basic unit of CPU utilization consisting a program counter, a stack and a set of registers (and a thread ID).
Types of threads in OS
There are two types of threads to be managed in a modern system: User threads and kernel threads. User threads are supported above the kernel, without kernel support. These are the threads that application programmers would put into their programs. Kernel threads are supported within the kernel of the OS itself.
Memory Management
Functions
-
Allocation technique
once memory allocation is decided, specific location must be decided and information updated.
-
-
-
External fragmentation
is the situation whereby (holes) are created as the result of swapping small Process into a space occupied by a large process
-
Virtual Memory
-
Advantages
Large virtual memory: a job’s address space is no longer constrained by the size of the physical memory.
-
-
-
Multithreading
-
Advantages
Responsiveness - One thread may provide rapid response while other threads are blocked or slowed down doing intensive calculations.
Resource sharing - By default threads share common code, data, and other resources, which allows multiple tasks to be performed simultaneously in a single address space.
Economy - Creating and managing threads (and context switches between them) is much faster than performing the same tasks for processes.
Scalability - i.e. Utilization of multiprocessor architectures - A single threaded process can only run on one CPU, no matter how many may be available, whereas the execution of a multi-threaded application may be split amongst available processors.
Models
Many-to-One
In the many-to-one model, many user-level threads are all mapped onto a single kernel thread.
-
Many-to-Many
The many-to-many model multiplexes any number of user threads onto an equal or smaller number of kernel threads, combining the best features of the one-to-one and many-to-one models.
Process
How its created
A process can create several new processes through creating process system calls during the process execution. Creating a process we call it the parent process and the new process is a child process.
-
-
-