Exp14oopm A36
Exp14oopm A36
B.4 Conclusion:
(Students must write the conclusion as per the attainment of individual outcome listed above
and learning/observation noted in section B.3)
Therefore we have created multiple threads to print $*$*$*$*$*$*.
B.5 Question of Curiosity
(To be answered by student based on the practical performed and learning/observations)
ANS:
PROCESS THREAD
1) Threads within the same process
1) Processes have their own separate share the same memory space. They
memory space. can access the same data and heap,
but each thread has its own stack
and register context.
2) Threads can communicate easily
2) Communication between processes and quickly since they share the
is more complex and slower as it same memory space. No special
often requires IPC mechanisms like mechanisms are required for
pipes, message queues, or shared threads within the same process to
memory. share data.
3) Threads have lower overhead
3) Creating and managing processes compared to processes since they
generally involve higher overhead share the same memory and
due to the allocation of separate resources.
memory and resources.
c) Blocked/Waiting State