100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary Computer architecture and networks hoorcollege 5 $3.21   Add to cart

Summary

Summary Computer architecture and networks hoorcollege 5

 38 views  0 purchase
  • Course
  • Institution

Computer architecture and networks lecture 5. Notes of the lecture Computer Architecture and Networks (INFONW). Summary is in English and is supported with pictures and examples for extra clarity. Lessons taught at Utrecht University, Informatica.

Last document update: 4 year ago

Preview 2 out of 10  pages

  • September 22, 2020
  • September 27, 2020
  • 10
  • 2020/2021
  • Summary
avatar-seller
Hoorcollege 5:

Operating system: interface between hardware, executable programs and the
computer operator(the user). Main tasks of an OS;

1. Process management: manage programs -> start, stop, errors, interrupts
& time sharing
2. Memory management: manage memory -> information sharing
(communication) & protection (security) between programs & processes
3. File management: information storage outside memory -> coordinate
access. Read & write of files.
4. Device management: (CPU-) external device access -> resource sharing
and interface procedures.




Explanations components:

, - System vs. Application programs: applications are user-centric; system programs manage
system operations
- System commands: elementary programs that perform 1 or few system calls
- Kernel: OS main tasks
- Hardware-Abstraction Layer → idea: unify naming & procedure to access multiple similar
drivers



Simple OS structures(Early UNIX and DOS). The application program can
call the system programs. The system program can either interface drivers
or hardware functions directly. There was a lack of hardware access
protection. You could write a program that would overwrite the
instruction of other programs. Lots of ‘loopholes’ to circumvent OS
constraints. The application program can also directly access the memory.

It is very hard to maintain. For each new program that is released you
need new functions and new interfaces to covert its calls to the hardware.
There are also common incompatibilities, if you write a new version of OS, you need to recompile
the whole stack. So the new version is actually a reinstall of your OS and not an update because
everything has to be changed as well.



An OS has two execution modes:

- Kernel mode (supervisor mode): full resource access, no restrictions -> direct hardware calls.
- User mode: restricted instruction set available that programs can directly execute, memory
segment access protection so programs cannot enter other programs segments -> no direct
hardware access (apart from the CPU and memory).

If a program want access to certain memory or hardware it will ask for permission.



Why splitting the kernel mode and user mode?:

1. Memory protection: to prevent programs manipulation other programs.
2. Protect OS from software manipulation (-> intrusion protection, e.g. firewall or anti-virus)
3. Access synchronisation to single-access hardware. E.G. the webcam can only serve one
program, you can have a program that can ask access to the webcam and the OS will say,
‘yes you can have permission’, when another program want to access the webcam, the first
program needs to drop their permission so the second program can use it.



Task/objectives of an OS:

- Program creation, execution & coordination – the process life cycle
- I/O operations
- File-system manipulation, manage the filesystem(how can we read and write files)
- Communication -> IPC(communication between processes) & Network
- Error detection
- Resource allocation & management

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller luukvaa. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $3.21. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67474 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$3.21
  • (0)
  Add to cart