answersLogoWhite

0

What is thread exception?

Updated: 10/26/2022
User Avatar

Wiki User

12y ago

Best Answer

In computer terminology, the thread refers to the sequence of instructions that have been executed. When the computer reaches a decision point (if x > 1), the thread may take either of two paths.

An "exception" simply means that something happened that was not expected or something that resulted in an unpredictable outcome.

Effectively, a thread exception means that the computer ended up in an unexpected section of code. Thread exceptions can often be the result of pointer errors.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is thread exception?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What happens to child thread when you delete main thread during run-time?

In Java, if the main thread somehow exits then all other threads will stop executing. This generally does not happen, as the main thread will wait for all child threads to terminate before the main thread itself finishes. Interrupting this process is hard to do short of an un-handled exception or a call to System.exit. If the child thread is also a daemon thread, then the child thread will continue to execute. If the child thread is a normal thread then, the moment System.exit is called, the child thread also terminates If you call the join() method from the child thread, then the main thread will wait until the child is over before executing the System.exit


Is an EUE thread a Non-Pressure sealed thread?

EUE thread is a pressure sealed thread as usual completion pup joints thread


Can a thread create a process?

No, a thread can't create aprocess, because the environment of the thread is a part of a process which created this thread.


Examples of java?

The term "exception" means "exceptional condition" and is an occurrence that alters the normal program flow. A bunch of things can lead to exceptions, including hardware failures, resource exhaustion, and good old bugs. When an exceptional event occurs in Java, an exception is said to be "thrown." The code that's responsible for doing something about the exception is called an "exception handler," and it "catches and handles" the thrown exception. Exception handling works by transferring the execution of a program to an appropriate exception handler when an exception occurs. For ex: Your website displays the users bank account details. Suddenly if the bank database is down, imaging how the user would feel if an abrupt error page with numerous lines of java exception messages spewed all over the screen? First of all, it would be embarrassing and second of all, the user will get annoyed. Instead, if your code catches this database down scenario and displays a graceful message on screen saying "We are currently experiencing some difficulties in our system. Kindly try after some time. Thank you" it would be much better isnt it? That is exactly why we have or rather why we need Exception Handling.


Is main method a thread?

No, Main is not a daemon thread in Java. its a non daemon or user thread. Also any thread stem from Main will be non daemon because daemon is derived from parent Thread status.

Related questions

What happens to child thread when you delete main thread during run-time?

In Java, if the main thread somehow exits then all other threads will stop executing. This generally does not happen, as the main thread will wait for all child threads to terminate before the main thread itself finishes. Interrupting this process is hard to do short of an un-handled exception or a call to System.exit. If the child thread is also a daemon thread, then the child thread will continue to execute. If the child thread is a normal thread then, the moment System.exit is called, the child thread also terminates If you call the join() method from the child thread, then the main thread will wait until the child is over before executing the System.exit


Different types of threads in OS?

There are many different thread forms in use today. The most common are; BPV thread API thread profile gauge Thread profile gauge API 5b thread gauges API thread gauges Pipe thread gauges API Thread Gauge Manufacturer & Supplier Ring gauge use Pipe threader Acme thread Feeler gauge set Ring gauge set threaded pipe plug step gauge NPT thread gauge Tapered pipe thread


Is an EUE thread a Non-Pressure sealed thread?

EUE thread is a pressure sealed thread as usual completion pup joints thread


What are the different types of thread?

Fine Thread and Course Thread


What are properties of thread?

thread


Is cotton thread stronger than poly cotton thread?

yes cotton thread is stronger than polycotton thread


Can a thread create a process?

No, a thread can't create aprocess, because the environment of the thread is a part of a process which created this thread.


What is an idle thread?

The special thread a dispatcher will execute when no ready thread is found.


Angle of thread for different thread?

The angle of a thread of a screw is an angle between the threads and it is the defining factor for the shape of the screw thread.


What is cone thread?

Cone thread is thread typically used on an overlock "serger" machine. It is thread wound on a cardboard or plastic cone, and is much bigger than a standard thread spool.


What is the difference between a 50 weight thread and a 30 weight thread?

The weight of a thread has to do with its size. A 50 weight thread is finer than a heavier 30 weight thread. 30 weight thread is commonly used for top-stitching, while the finer 50 weight thread is used for sewing seams and piecing.The weight of a thread has to do with its size. A 50 weight thread is finer than a heavier 30 weight thread. 30 weight thread is commonly used for top-stitching, while the finer 50 weight thread is used for sewing seams and piecing.


What is the collective nouns of thread?

A collective noun for thread is a spool of thread.