0% found this document useful (0 votes)
14 views15 pages

Osy Microoo

Microprojecttt

Uploaded by

yashmahajan377
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)
14 views15 pages

Osy Microoo

Microprojecttt

Uploaded by

yashmahajan377
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/ 15

Synopsis

On

Thread
Submitted in the partial fulfillment of the requirement for the diploma
Of
Diploma in Computer Technology

Yash Mahajan
Aryan Jadhav

Under the guidance of


Mrs. Poonam Irmali

Department of COMPUTER TECHNOLOGY


SHUVAJIRAO S. JONDHALE POLYTECHNIC, AMBERNATH
(MAHARASHTRA)
Maharashtra state board of technical education
(2024-2025)
Maharashtra State Board of Technical Education
Certificate
This is to certify that MR./MS. of 5th semester of Diploma in Computer
technology of Institute, Shivaji Rao S. Jondhale Polytechnic (Code:0147) Has
completed the Micro Project satisfactory in subject: OS for the academic year
(2024-2025) as prescribed in the curriculum
SR NO. Name of the Roll No. Enrollment Seat No.
Group Members No.

1. Yash Mahajan 1420 2101470055


2. Aryan Jadhav 1414 2101470048
3.
4

Place: AMBERNATH
Date:

Subject Teacher Head of the Department Principal


INDEX

SR. Content Page


NO. No.

1. Introduction 4.
2. What is Thread? 5-6.
3. Key Characteristics 7.

4. Types of Threads 8.

5. Thread Lifecycle 9.

6. Thread Management 10.

7. Advantages Of using 11-12.


Threads
8. Conclusion 13.

Introduction
A thread is a lightweight process that share
thread is a single sequence stream within a
process. Threads are also called
lightweight processes as they possess some
of the properties of processes. Each thread
belongs to exactly one process. In an
operating system that supports
multithreading, the process can consist of
many threads

it is an execution unit that consists of its


own program counter, a stack, and a set of
registers where the program counter
mainly keeps track of wvhich instruction
to execute next, a set of registers mainly
hold its current working variables, and a
stack mainly contains the history of
execution
What is thread?
A thread is a single sequential flow of
execution of tasks of a process so it is
also known as thread of execution or
thread of control. There is a way of
thread execution inside the process of
any operating system. Apart from this,
there can be more than one thread
inside a process. Each thread of the
same process makes use of a separate
program counter and a stack of
activation records and control blocks.
Thread is often referred to as a
lightweight process.
The process can be split down into so
many threads. For example, in a
browser, many tabs can be viewed as
threads. MS Word uses many threads -
formatting text from one thread,
processing input from another thread,
etc
Key Characteristics

Lightweight: Threads have lower


overhead compared to processes,
allowing for faster creation and
destruction.

Shared Resources: Threads within the


same process share memory and
resources, which facilitates
communication and data exchange.
Concurrency: Multiple threads can
execute simultaneously on multicore
processors, improving application
performance and responsiveness.
Types of Threads
User Threads: Managed by user-level
libraries rather than the operating system.
These threads are not visible to the OS,
which can lead to challenges in scheduling
and management.

Kernel Threads: Managed directly by the


operating system. The OS is aware of these
threads, allowing for better scheduling and
resource allocation.

Hybrid Threads: Combine aspects of both


user and kernel threads. User threads are
mapped to kernel threads, allowing for
flexibility and efficiency
Thread Lifecycle
The lifecycle of a thread can be
summarized in several states:

New: The thread is created but not yet


started.
Runnable: The thread is ready to run and
waiting for CPU time.
Blocked: The thread is waiting for an event
(e.g., I/O operation) to complete.
Terminated: The thread has completed its
execution.
Thread Management
Thread management includes various
operations, such as:

Creation: Using system calls like


pthread_create in POSIX threads
(pthreads) or CreateThread in Windows.
Synchronization: Mechanisms like
mutexes, semaphores, and condition
variables are used to coordinate access to
shared resources and prevent race
conditions.
Termination: Threads can terminate
normally after completing their task or be
terminated abruptly if necessary.
Advantages of Using Threads
Increased Performance: Threads can run
in parallel, taking full advantage of
multicore processors.
Improved Responsiveness: Applications
can remain responsive while performing
background operations.
Resource Sharing: Threads within the
same process can easily share data
without requiring complex inter-process
communication.
Challenges and Considerations
Concurrency Issues: Threads can lead to
race conditions, deadlocks, and resource
contention if not managed properly.
Complexity: Multithreaded programming
can be more complex than single-
threaded programming, requiring careful
design and debugging.
Portability: Different operating systems
may have different thread models, which
can affect application portability
Conclusion

Threads play a crucial role in modern


operating systems, enhancing application
performance and responsiveness.
Understanding their characteristics,
management, and associated challenges is
essential for effective multithreaded
programming. As systems continue to
evolve towards parallel computing, the
importance of efficient thread
management will only increase.
References

❖ www.wikipedia.com ❖
www.chatgpt.com
❖ www.vbforums.com
❖ www.greeks.forgreeks.com
❖ www.slideshare.net
Marks

Roll No. Name of Student Marks of group Marks obtained Total Marks
work A by the individual (A+B)
(Out of 4) based in Viva B
(Out of 6)

1420 Yash Mahajan

1414 Aryan Jadhav

Name and Signature of Faculty:

You might also like