Tag Archives: multithreading interview question.

What is Daemon thread and How to make Daemon thread?

What is Daemon thread and How to make Daemon thread?

What is Daemon thread and How to make Daemon thread? The threads which are executing in the background are called Demon threads. Ex… Garbage Collector, Signal Dispatcher, Attach Listener. The main objective of demon threads is to provide support for non-demon threads(main thread) For ex… If the main thread runs with low memory then JVM runs GC to destroy useless ...

Read More »

Explain thread priority and what is default thread priority?

Explain thread priority and what is default thread priority?

Explain thread priority and what is default thread priority? Every thread in java has some priority. It may be default priority generated by JVM or customized priority provided by the programmer. The valid range of thread priorities is 1-10. where 1 is min priority and 10 is the max priority. Thread class defines the following constant to represent some standard ...

Read More »

What is Multi-Threading and how we can define a thread?

What is Multi-Threading and How many ways we can define a thread.

What is Multi-Threading and how we can define a thread? Executing several tasks simultaneously where each task is a separate independent part of the same program is called thread-based multitasking and each independent part is called a thread. Thread-based multitasking is best suitable at a programmatic level. Whether it is process-based or thread-base the main objective of multitasking is to ...

Read More »

Responsive WordPress Theme Freetheme wordpress magazine responsive freetheme wordpress news responsive freeWORDPRESS PLUGIN PREMIUM FREEDownload theme free