03 Laboratory Exercise 1 (3) VILLANUEVA

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

l

lOMoARcPSD|19383005

Roger VI Villanueva
BSIT-301
Laboratory Exercise
Threads

Part I

Take a screenshot of the maximized Task Manager window that shows the five (5) columns listed
above.

Downloaded by Aidan Roj (aidanroj30@gmail.com)


lOMoARcPSD|19383005

Analyze the details of the running processes in your computer. You may open other columns that
would show additional details regarding each process. Then, explain the relationships or
interdependencies that you can conclude based on the corresponding details in your Task Manager.
Cite examples as needed.

- These details of the running processes, shows us how an application uses or how does it
process through all the time of a running computer. For example, the application I opened,
Canva, Into the details tab, we can know how many threads does it have in one process, and
the estimated power usage of a process, taking into account its current CPU, disk, and GPU
activity.

Part II
Search for relative studies and/or literature regarding the process and thread concepts of the
following operating systems.

Linux OS - All threads in Linux are implemented as standard processes. Threads are not
represented by any specific scheduling semantics or data structures in the Linux kernel. Threads are
just a way of distributing resources across processes in Linux, which are already quite lightweight,
when the other systems have explicit kernel support for threads.

Android OS - When an application component starts and there are no other components
running, the Android system creates a new Linux process with a single thread of execution for the
application. All components of a single application operate in the same process and thread by
default called the "main" thread.

Downloaded by Aidan Roj (aidanroj30@gmail.com)


lOMoARcPSD|19383005

Android OS:
OTHER
APP APP
Threads

PROCESS PROCESS

Linux OS:

User thread

LWP Light

k Kernel

Downloaded by Aidan Roj (aidanroj30@gmail.com)


lOMoARcPSD|19383005

On Android OS processing and threads has been occur by the Linux Kernel. Each application will be
given a slot of CPU. Once the information of an application that needed to be run, it will create
process. In one of those process may contain threads and by each thread will perform different tasks.

In Linux OS, it is considered in its processing as a user level. Even having multiple threads, it is viewed
as a single process. The threads in Linux are not termed by Thread but it is light weight processes, the
thread is attached to a kernel thread and it will be scheduled to be run on physical processors.

How does the operating system support or implement multithreading?


- In doing multithreading, it will help the processes to perform more tasks. Rather than having
a four processor and each of them given to perform only single thread, it will take a lot of
time. So, having multithreading for the operating system to calculate and work efficiency.

Is it possible to increase the number of threads within processes without affecting the average
response time of this operating system? Why or why not?
- It is possible, because of multithreading, an application can be executed well and dividing
its programs in each process and making it efficient. It is also possible that having a heavy
program, like playing a big game that computes a lot of programs that may slow the
response time of the operating system. But it depends on what application will be run.

What are the possible effects of multithreading in the central processing unit (CPU) utilization of this
operating system? Rationalize your answers.
- The possible effect will be is the processes can perform multiple tasks at a time. While
having multithreading, it gives us benefits, our program will be responsive, resource
sharing, more economical in creating and context-switch threads, and greatly increases
concurrency.

References:
(2005, April). Linux Kernel Process Management. Linux Kernel Development, 2nd Edition. Retrieve from
https://www.informit.com/articles/article.aspx?p=370047&seqNum=3

Android Authority. (2016, April 13). Processes and threads - Gary explains [Video]. YouTube.
https://www.youtube.com/watch?v=h_HwkHobfs0

Arora, H. (2013, November). What are Linux Processes, Threads, Light Weight Processes, and Process
State. Retrieved from https://www.thegeekstuff.com/2013/11/linux-process-and-threads/

Downloaded by Aidan Roj (aidanroj30@gmail.com)


lOMoARcPSD|19383005

Neso Academy, (2019 May 24). Introduction to Threads [Video].


Youtube. https://www.youtube.com/watch?v=LOfGJcVnvAk

Pm, J., (2019, July). Process And Threads In Android. Retrieved from
https://devdeeds.com/process- and-threads-in-andoid/

Downloaded by Aidan Roj (aidanroj30@gmail.com)

You might also like