Assignment #2 - TylerVisentin/CIS GitHub Wiki

Multi-Threading in Operating Systems

1

Welcome to Assignment #2 in this wiki we will be talking about multi-threading in operating systems.

Abstract

What is Multi-threading ? Multi-Threading is a way of being able to multi task between applications. The operating system works on many threads at the same time following it can also switch quickly between threads. This allows the operating system to work on several processes at a time or complete a process more effectively. CPU's also control data independence by the exception handler in a separate context.

Introduction

What does Multi-Threading entail?

Multi-Threading and the Operating System

Many modern OS have different users that run programs at what seems to be running at the same time. If an OS is hosted with a hardware system with a singular Central processing unit that tells you that not all of these programs it just looks that way. The OS system works with the CPU and other resources to the demanding applications and then after switches these components from one open program to another when needed.

  • Each task consumes system memory aka (RAM)
  • The Operating System must update internal information frequently whenever the system switches execution context from one app to another. 1

Problem statement

The reason multithreading was initiated was to execute multiple components of a program or app at the same exact time this makes things a lot quicker and easier. The parts that handle this are threads that are still available within this process. This has enabled the CPU to reach its maximum optimization.

Methodology

Threads are paths in which is taken during a programs start up or execution. Many programs designed in todays time now run as a single thread due to innovations in technology. For example, take a program that isn't capable of reading keystrokes with also cropping pictures. If these task or not able to be preformed by the app at the same time it can be handled by multi threading through the Central Processing Unit so that multiple task can be executed.

Results

If you have a program that isn't able to do multiple task at the same time this can cause the program not being able to run if your CPU isn't able to multi thread. This can cause a crash in the program which can be frustrating so to prevent this multi threading was implicated to prevent programs crashing because of not being able to preform multiple task which makes the system run a lot smoother.

Conclusion

To summarize Multi-Threading it is very necessary to have a operating system capable of this if you want the maximum performance out of your programs and applications. Multi-Threading makes your Operating System run smooth and is able to execute multiple task.

Future

This format will only continue to get better in making the OS preform better with advances in CPU technology.

References

The Future of Multi-Threading

Operating System - Multi-Threading