0% found this document useful (0 votes)
20 views

03 Laboratory Exercise 1 Enc Batch 1: Network Design and Management (Nueva Vizcaya State University)

The document discusses a laboratory exercise on threads. The objectives are to discuss the basic functionalities of threads and deduce the performance implications of multithreading. Students are instructed to run applications on their computer, view the task manager, and analyze processes and threads. They must then research process and thread constructs for Linux and Android operating systems. This involves providing diagrams, explaining multithreading support, and discussing effects on CPU utilization. References must be cited.
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)
20 views

03 Laboratory Exercise 1 Enc Batch 1: Network Design and Management (Nueva Vizcaya State University)

The document discusses a laboratory exercise on threads. The objectives are to discuss the basic functionalities of threads and deduce the performance implications of multithreading. Students are instructed to run applications on their computer, view the task manager, and analyze processes and threads. They must then research process and thread constructs for Linux and Android operating systems. This involves providing diagrams, explaining multithreading support, and discussing effects on CPU utilization. References must be cited.
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/ 7

03 Laboratory Exercise 1 Enc Batch 1

Network Design and Management (Nueva Vizcaya State University)

Studocu is not sponsored or endorsed by any college or university


Downloaded by DATU AL-ANSARI UKO ([email protected])
IT2105

Laboratory Exercise Threads


Objectives:

At the end of the exercise, the students should be able to:

▪ Discuss the basic functionalities of threads; and


▪ Deduce the performance implications of multithreading to an operating system.

Instructions:

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

Downloaded by DATU AL-ANSARI UKO ([email protected])


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

Downloaded by DATU AL-ANSARI UKO ([email protected])


example, is explorer.exe, Microsoft Word is WINWORD.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
B. Android OS
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.

Running - The CPU is executing 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. Terminated - The procedure has been
completed.
Downloaded by DATU AL-ANSARI UKO ([email protected])
• How does the operating system support or implement multithreading? (5
points)

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

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

Downloaded by DATU AL-ANSARI UKO ([email protected])


• What are the possible effects of multithreading in the central processing
unit (CPU) utilization of this operating system? Rationalize your
answers. (5 points)

-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.). (5 points)

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

Grading Rubric for Essay:


Criteria Performance Indicator Points
Content Correct ideas, concepts, and/or examples were included. 3
Organization The presentation of ideas was generally organized. 2
TOTAL 5

Downloaded by DATU AL-ANSARI UKO ([email protected])


Note: DO NOT COPY AND PASTE. All students who copy and paste their work from any website or their classmates will automatically receive a failing mark for this assessment task.

03 Laboratory Exercise 1 *Property of STI


Page 1 of 1
Powered by TCPDF (www.tcpdf.org)

Downloaded by DATU AL-ANSARI UKO ([email protected])

You might also like