Computer Science, asked by rashelHossain, 4 days ago

Illustrate the ways thread can be used with example and proper explanations about the
different ways.

Answers

Answered by pjha700k
0

Answer:

jgohxhvxjgxugdizdizdizr

Answered by sheeb12ansari
0

First we see the definition of thread in Java

In the context of Java, a thread is the path followed when executing a program.

As we know

A single thread in Java is basically a lightweight and the smallest unit of processing.

Java uses threads by using a “Thread Class”.

There are two types of thread – user thread and daemon thread.

User thread:

They are high-priority threads. The JVM will wait for any user thread to complete its task before terminating it.

Daemon thread:

They are low-priority threads whose only role is to provide services to user threads.

Similar questions