• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/26

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

26 Cards in this Set

  • Front
  • Back

What does the core of the CPU contain?

Control Unit, ALU, Generic registers, PC, Stack Pointer, Program Status Word (CCR), Cache memory.

What are the two processor modes?

Kernel/User.

What mode does the OS run in?

Kernel.

How can a program enter kernel mode?

Software trap (interrupt intended to initiate a context switch).

What functions are usually forbidden in user mode?

I/O and memory functions.

What do I/O devices consist of?

The device itself, and a controller (with registers).

What talks to an I/O device controller?

Device driver.

Why bother having an OS?

Each application would be responsible for running the computer!

How would all devices communicate?

Programmers shouldn't have to worry about low level stuff.

Where does the OS exist?

On top of the hardware, below application programs.

What mode does the Kernel run in? Why?

kernel mode (supervisor mode) to protect it from tampering.

What 4 things does an OS do?

Hides details of work.

Multi-task.

Allow programs to share resources in time.

Allow programs to share resources in space.

What are two perspectives of an OS?

Extended Machine - Hardware communication.




Resource Manager - Each program given time/space. OS is the scheduler.

What are the 7 types of OS?

Mainframe.
Server.
Multiprocessor.


PC OSs.
Real-Time Operating Systems.


Embedded OSs


Smart Card Operating Systems.

MSM-PRES
Ma server multitasks presents

What is a process?

A program in execution to which we have given resources.

What resources are associated with a process?

The process' address space.
Set of registers.
Priority.
Opened files.
Signals awaiting by the process.

Where is information about processes stored?

Into a structure called a process table.

An entry in the process table will exist for each process and they are grouped together as an array or a linked list.

What are the signals received by processes from the OS called?

Alarm Signals (Software equivalent to interrupts).




Caused by timers controlled by the OS or by Hardware.

An OS assigns what number to the process based on the user that started it? What does this affect?

UID (User Identification).

What features of the operating sytstem they can access.

What are the short comings of evenly allocating available memory per n proccesses?

Wastes memory.
Limits all processes to an artificially small size.
Limits the number of processes that may execute.

What is a solution to dividing memory per n processes?

Virtual memory:

Part of the address space is maintained on the disk. Parts of processes are moved between disk and main memory when required.

When are system calls required for handling files?

File opening, closing, creation, deletion, reading, and writing.

Directory creation and deletion. Addition/removal of files to and from hierarchies.

Files in UNIX are protected by a 9-bit code.

Is the shell part of the operating system?

No, but it is closely linked.

What are system calls?

The interface between user programs and the operating system.

How do you create a new process in *NIX OS?

fork()

s = execve(name, argv, environp)

Replaces the proccess' core image with name program
argv is a pointer to an array of characters
environp is an array of environment information.