You are on page 1of 7

Maragrag, Lynfel Mae D.

BSIT 2101

Part I.
1. Run at least seven (7) different applications on your computer (i.e., Google
Chrome with multiple tabs, Microsoft Word/Excel/PowerPoint,
programming software, video/music player, etc.)
 Visual Studio Code
 Riot Client
 Microsoft Word
 Microsoft PowerPoint
 Killer Control Center
 iTunes
 Google Chrome
2. Open and maximize the window of the Task Manager on your computer
3. Find the tab showing the list of processes (application and background tasks) and
their corresponding details that currently run on your computer.

4. Set the columns to show the following:


a. Process ID
Name PID
Visual Studio Code 23632
Riot Client 20088
Microsoft Word 9612
Microsoft PowerPoint 19956
Killer Control Center 24248
iTunes 14832
Google Chrome 17016
b. Process Execution Process
Name Status
Visual Studio Code Running
Riot Client Running
Microsoft Word Running
Microsoft PowerPoint Running
Killer Control Center Running
iTunes Running
Google Chrome Running
c. Number of active threads per process

d. Total processor time used per process


e. Amount of memory in use by the process

5. Take a screenshot of the maximized Task Manager window that shows the five (5)
columns listed above.
6. 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.
 In the task manager, you can see all application process and those
application that runs in the background, the total processor utilization,
memory used by the active process, it also shows the process ID of the used
application where it change when you end the process and open it again, it
also shows that status either the application is running or suspended. When
it comes to interdependence, the task manager shows all about how the
processes runs where you can also manage if you have something to manage,
task manager will show performances that will depends the running
processes.
Part II.
1. Search for relative studies and/or literature regarding the process and thread concepts of
the following operating systems:
a. Linux OS - Linux is a Unix-like, open source and community-developed operating
system (OS) for computers, servers, mainframes, mobile devices and embedded
devices. It is supported on almost every major computer platform, including x86, ARM
and SPARC, making it one of the most widely supported operating systems. Older
version of the Linux Kernel offered no support for multithreaded applications, from
kernel point of view, a multithreaded application was just a normal process. The
multiple execution flows of a multithreaded application were create, handle, and
scheduled entirely in User Mode.

b. Android OS – As handheld devices such as smartphones and tablets become more


popular, the role of an operating system grows significantly. Android OS powered
devices are full of integrated hardware such as cameras, gyroscopes, accelerometers,
WiFi and Bluetooth wireless communication modules, and of course a touch screen.
Most of them contain built-in GPS (Global Positioning System) and GLONASS
(GLObalNAvigation Satellite System) receiver modules. Like all operating systems,
Android enables applications to make use of those hardware features and provides a
suitable environment. In most cases, every Android application runs in its own Linux
process. This process is created for the application when some of its code needs to be
run, and will remain running until it is no longer needed and the system needs to reclaim
its memory for use by other applications. The initial thread of execution, referred to as
the "main" thread, is created when an Android program is launched. The main thread
is in charge of interfacing with elements from the Android UI toolkit and dispatching
events to the appropriate user interface widgets.
2.
 Provide a diagram showing the process and thread construct of the operating
system.

Provide a diagram showing the process and thread construct of the


operating system.
Linux OS Diagram Android OS Diagram

Briefly explain the diagram that you have provided


In Linux OS the CPU or the When it comes to Android OS
processor will hold the process process and threads, an android
which a process can contains can handle for almost 7 multi-
many threads, a program counter, threads, the initial thread of
registers, and stack are all execution, referred to as the
critically important resources for "main" thread, is created when an
every process. A CPU contains a Android program is launched.
set of registers for holding data. The main thread is in charge of
Registers can hold information interfacing with elements from
needed by a process, such as the Android UI toolkit and
instructions or storage addresses. dispatching events to the
The process is the one that appropriate user interface
allocates the memory and widgets. As what you can see in
resources that are later used by the the diagram, in the background
thread thread, it contains with many
usable process in one process.

How does the operating system support or implement multithreading?


There are two ways to implement a thread, they're either in user space or in
the Kernel. The corresponding code and the data structures used are stored in
the user space. If an API is invoked, it results in a local system call in user
space, rather than a system call. The operating system natively supports
kernel threads. Programmers can make any application multithreaded. A
single process can support all of the threads in an application.
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?
No, because the more threads in the process the more the average time
responses will it takes for the process to be implemented, when there’s a lot of
threads in the process it can also effect on how the CPU run time, it’s highly
impossible for you to increase threads and doesn’t affect the response time
since everything you do on the process can extremely affect everything in the
Operating system

What are the possible effects of multithreading in the central processing


unit (CPU) utilization of this operating system? Rationalize your answers.
Multithreading allows many parts of a program to run simultaneously. These
parts are referred to as threads, and they are lightweight processes that are
available within the process. As a result, multithreading increases CPU
utilization through multitasking, because the more threads you have the slower
your system will be.

References:
https://www.techtarget.com/searchdatacenter/definition/Linux-operating-system
https://books.google.com.ph/books?hl=en&lr=&id=h0lltXyJ8aIC&oi=fnd&pg=PT11&dq=
process+in+linux&ots=gQ5sIT9gLV&sig=DvRQx4zRfSO4B3k-
v4lOFIbDYO8&redir_esc=y#v=onepage&q&f=false
https://picture.iczhiku.com/resource/paper/syIerhyjZtDKtbVB.pdf
https://www.toptal.com/android/android-threading-all-you-need-to-
know#:~:text=When%20an%20application%20is%20launched,from%20the%20Android
%20UI%20toolkit
https://developer.android.com/guide/components/activities/process-lifecycle
https://linuxhint.com/process-vs-thread-linux/

You might also like