03 Laboratory Exercise 1
03 Laboratory Exercise 1
a.
b.
d.
c.
e.
2. in my task manager an interdependent relationship is when two people, both strong
individuals, are involved with each other, but without sacrificing themselves or
compromising their values. Each person values their own sense of self and can fully be
themselves.
• Poor/no boundaries
• People-pleasing behaviors
• Reactivity
• Unhealthy, ineffective communication
• Manipulation
Part 2
1.
a. To the Linux kernel, there is no concept of a thread. Linux implements all
threads as standard processes. The Linux kernel does not provide any special
scheduling semantics or data structures to represent threads. Instead, a thread is
merely a process that shares certain resources with other processes. Threads
are a popular modern programming abstraction. They provide multiple threads of
execution within the same program in a shared memory address space. They
can also share open files and other resources. Threads allow for concurrent
programming and, on multiple processor systems, true parallelism.
b. A thread is a thread of execution in a program. The Virtual Machine allows an
application to have multiple threads of execution running concurrently. Every
thread has a priority. Threads with higher priority are executed in preference to
threads with lower priority.
1..
2.The state diagram for a process captures its life-cycle. The states represent the
execution status of the process; the transitions represent changes of execution state.
Each active process has its own execution status, so there is a state diagram for each
process. There are relationships between the states of various processes that are
maintained by the operating system.
3.Supported directly by the operating system. Any application can be programmed to
be multithreaded. All of the threads within an application are supported within a single
process. The Kernel performs thread creation, scheduling and management in Kernel
space.
4.Yes, because for a simple task of iterating 100 elements multi-threading the task will
not provide a performance benefit. Iterating over 100 billion elements and do processing
on each element, then the use of additional CPU's may well help reduce processing
time.
5. I'll think Multithreading adds stability to the programs and prevent it from crashing. All
threads run independently. So, if an error is encountered by a thread, it should not affect
rest of the program. It allows better utilization of the processor and other system
resources
6. https://www.d.umn.edu/~gshute/os/processes-and-threads.xhtml
https://www.informit.com/articles/article.aspx?p=370047&seqNum=3
https://www.verywellmind.com/how-to-build-a-relationship-based-on-interdependence-
4161249
https://www.howtogeek.com/405806/windows-task-manager-the-complete-guide/