0% found this document useful (0 votes)
9 views6 pages

LAB3OS

LabExercise in PT OS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views6 pages

LAB3OS

LabExercise in PT OS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

RAGAS,REGINE FLORDELIS S.

BSIT-A307

Part I (15 points)

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.).

2. Open and maximize the window of the Task Manager on your


computer.
3. sFind 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
b. Process execution status
c. Number of active threads per process
d. Total processor time used by a processor
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. (10 points)
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. (5 points)

The process name is used in error messages and is used to register


application defaults. It does not provide a unique identifier for the
process. Warning. User preferences and other parts of the environment
may be affected by the process name, so be cautious if you modify it.
The process's file name. File Explorer, for example, is Google Chrome is
Chrome.exe, and Task Manager is Taskmgr.exe.
Part II (60 points)

1. Search for relative studies and/or literature regarding the process


and thread concepts of the following operating systems:

A.Linux OS
ANSWER:
- A process in Linux is any active or running instance of a
program. Processes are important to Linux since the operating system
does all of its work regardless of as well as through processes. Threads in
Linux were nothing but a flow of process execution. A multi-threaded
process is one that has several execution flows. A non-multi-threaded
process has just one execution flow, which is the main execution flow.
Hence, it is also known as a single threaded process.

B.Android OS
ANSWER:
- The Android operating system is based on the Linux Kernel 2.6,
which offers an open source license and flexibility to user-driven
programs. It includes all of the fundamental operating system
capabilities, including as process scheduling, memory management,
threading, and process synchronization. Android categorizes processes
in listed in order of importance. The most important process is the last
to be killed. These processes are arranged as follows; Foreground
processes, Visible processes, Service processes, Background processes
and Empty processes. Threading is important since it is in responsible of
assigning events to the proper user interface widgets. It also provides a
platform for application interaction with components from the Android
UI toolkit.
2. Then, provide or answer the following for each operating system
(Linux and Android):

• Provide a diagram showing the process and thread construct of the


operating system. (5 points)

Briefly explain the diagram that you have provided. (5 points)

New - The procedure is in the process of being developed.

Ready - The process has all the resources it requires to run, but the CPU
is not actively working on the instructions for this process.

Waiting - The process cannot operate at the present because it is


awaiting the availability of a resource or the occurrence of an event. For
example, the process might be waiting for keyboard input, a disk access
request, inter-process communications, a timer to be triggered, or a
child process to complete

Running - The CPU is executing the instructions for this process.

Terminated - The procedure has been completed.


• How does the operating system support or implement multi-
threading? (5 points)
ANSWER:
- They allow many threads of execution to run concurrently inside the
same application in a shared memory address space. They are also able
to share open files and other resources. All threads are implemented as
normal processes in Linux. There are no unique scheduling semantics or
data structures in the Linux kernel to represent threads. The one-to-one
aka kernel threads approach is superior since it makes use of numerous
processors and permits genuine parallel processing. Multithreading is a
Java feature that enables for the parallel execution of two or more
portions of a program to maximize CPU efficiency. Each component of
such a software is referred to as a thread. Threads are therefore light-
weight processes inside processes

• 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? (5 points)
ANSWER:
- Yes, because every process has at least one thread, however there is no
limit to the number of threads that can be used by a process. The more
threads you have for specialized tasks, the better your computer's
performance will be. A single process may handle numerous tasks at the
same time by using multiple threads. People will also use terminology
like multi-threading and hyper threading. Hyper threading technology
enables a single CPU core to function as two cores, accelerating the
execution of a certain program or application. Even if you just have one
core, it can approximate the performance of two. The greater the
number of cores, the greater the number of threads. The more threads
you have, the better your system's performance will be
• What are the possible effects of multithreading in the central
processing unit (CPU) utilization of this operating system? Rationalize
your answers. (5 points)
ANSWER:
- Multithreading improves software stability and prevents it from
crashing. Each thread operates on its own. As a result, if a thread
encounters an error, the remainder of the program should be
unaffected. It enables more efficient use of the CPU and other system
resources. Multithreading is a type of parallelization or labor division
that allows for simultaneous processing. Threaded programs divide work
among numerous software threads rather than assigning a big job to a
single core. To save time, these threads are handled in parallel by
multiple CPU cores. In layman's terms, threads enable your CPU to do
many tasks at the same time. So, if you wish to execute numerous heavy
tasks, you'll need a CPU with a lot of threads. Every CPU has active
threads, and every task on your computer has at least one thread.

• Properly cite all your references (i.e., books, articles, dissertations,


websites, etc.). (5points)
ANSWER:
https://whatsabyte.com/blog/processor-threads/
https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/
4_Threads.html
https://docs.microsoft.com/en-us/windows/win32/procthread/
processes-andthreads

You might also like