Java multi-threading

Java multi-threading

What is multi-threading?
View Answers

October 22, 2010 at 11:39 AM

Hi,

Here is the answer.

Multithreading is a technique that allows a program or a process to execute many tasks concurrently (at the same time and parallel). It allows a process to run its tasks in parallel mode on a single processor system

In the multithreading concept, several multiple lightweight processes are run in a single process/task or program by a single processor. For Example, When you use a word processor you perform a many different tasks such as printing, spell checking and so on. Multithreaded software treats each process as a separate program.

In Java, the Java Virtual Machine (JVM) allows an application to have multiple threads of execution running concurrently. It allows a program to be more responsible to the user. When a program contains multiple threads then the CPU can switch between the two threads to execute them at the same time.

Thanks.









Related Tutorials/Questions & Answers:
Java multi-threading
Java multi-threading  What is multi-threading
Java multi-threading
Java multi-threading  What method is invoked to cause an object to begin executing as a separate thread
Advertisements
Java multi-threading
Java multi-threading  How does multithreading take place on a computer with a single CPU
Multi-Threading - Java Beginners
Multi-Threading  Consider a producer process prime-generator produces prime numbers randomly that are displayed by a consumer process called prime... the previously displayed number. You have to write a multithreaded Java program
multi threading - Java Interview Questions
multi threading   1. extending a thread and 2. implementing runable interface is used in multi threading concept in both of this which one good... information over Multithreading concepts visit http://www.roseindia.net/java/thread
multi threading code - Java Interview Questions
multi threading code  Hi this is Anji.My question is how to share the variable between two threads?.Can any one post the answer please
what is multi-threading .?
what is multi-threading .?   what is multi-threading.what is the use in real time, with example programs
Multi Threading is not working in that why...?
Multi Threading is not working in that why...?   import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Date; public
Multi Threading
Multi Threading  Hi... I need to solve the following question: Input an array of 10 integers. Separate the odd numbers, even numbers, positive numbers and negative numbers by different threads. I tried to solve it but I dont
Java synchronization
Java synchronization  What is synchronization and why is it important?  Synchronization is best use with the Multi-Threading in Java. Synchronization is the way to make our program safe. As we know when we have two
Java JDBC
Java JDBC  Is JDBC-ODBC bridge multi-threaded?  ... that it makes to ODBC. The multi-threaded java programs that use the bridge wouldn?t get the benefits of multi-threading. Also, there are chances of the occurrence
Java Synchronization
Java Synchronization  What is synchronization and why is it important?  Synchronization is best use with the Multi-Threading in Java. Synchronization is the way to make our program safe. As we know when we have two
java - JDBC
of the calls that it makes to ODBC. Multi-threaded Java programs may use the Bridge, but they won't get the advantages of multi-threading. The DriverManager class
What is difference between Core Java and Advanced Java?
of Java. In Core Java you are learning the syntax, OOPs, Classes, Interfaces, Multi threading concepts in Java. Core Java is used to develop console based.... Advanced Java Tutorials Introduction to Generics in Java Threading in Java
What is difference between Core Java and Advanced Java?
of Java. In Core Java you are learning the syntax, OOPs, Classes, Interfaces, Multi threading concepts in Java. Core Java is used to develop console based.... Advanced Java Tutorials Introduction to Generics in Java Threading in Java
Java Online Training in USA
, using I/O streams and files, object serialization multi-threading, using...Java Online Training in USA Java, an object oriented programming language.... Professionals from around the world often look for an online training course in Java
tread - Java Beginners
with the Multi-Threading in Java, Synchronization is the capability to control the access...?  A thread is a thread of execution in a program. The Java Virtual... information, visit the following link: http://www.roseindia.net/java/thread
Java Training Online
a built in capacity to handle multi-threading. Owing to these reasons, the Java...Java Training Online The increasing use of Java in IT industry has opened floodgates of opportunities for those, trend in Java and its various applications
Java :Thread Synchronization
Java :Thread Synchronization This section explains how to use concept of synchronization in java Thread. Thread Synchronization : . Java supports multi... of program. So for the multi-threaded application, synchronization of java
Java Online Class
ability to handle multi-threading. Owing to these reasons a large number...Java Online Class The advent of e-learning has made learning fun, as students.... Students with interest in technology often wish to attain mastery over Java
Java Introduction
browsers support Java Java works on distributed computing It supports multi-threading Java is secure Java is robust-Java compilers check program...In this section we will introduce Java to the beginners. We will discuss
Introduction to Java
on multi-threading that makes the work easy and quick. Different threads...Java is an open source object oriented programming language... environment to code in. Hence they developed Java. The company was later overtaken
Learn Java
. This language is considered easy and with multi-threading, exception handling...There is a need to learn Java programming in today?s world as it has become... Technology development. Java an Object Oriented based Programming language is being
Core Java Jobs at Rose India
Candidate must be proficient in Multi-threading concepts... Core Java Jobs at Rose India       This Core Java Job is unique among
Java 9 Features
Java 9 Features: First version of Java 9 Features announced The plan for the development of the Java is on full swing and oracle is announced the first features list of Java 9 on August 18, 2014. The first set of Java Enhancement
Core Java Training
Datatypes Non-Primitive Datatypes Arrays Multi Threading Exception Handling...Core Java training provided online by Roseindia covers the basic of Java... are also shown and discussed in detail. Java programming has become quintessential
java
java  what is the difference between vb and vb.net?   Hi Friend, Differences:ADS_TO_REPLACE_1 Visual Basic.NET is object oriented whereas VB 6 is not. Visual Basic.NET supports multi threading whereas VB does
How to store unique values in Java using Set?
and you should use it with care in multi-threading environment. Here are more...Store unique values in Java using Set interface In this section we will discuss about the Set interface in Java which is designed to store unique values. We
How to store unique values in Java using Set?
in multi-threading environment.ADS_TO_REPLACE_4 Here are more tutorials...Store unique values in Java using Set interface In this section we will discuss about the Set interface in Java which is designed to store unique values. We
Impeccable Training for Java - Corporate Java Tutorials
routines of Java. Multi-threading Enabled: Performing multiple tasks at a time...Impeccable Training for Java - Corporate Java Tutorials The class-based, concurrent, general purpose programming language, Java is most widely used
Qt Jambi
and layout, database, multi-threading, networking, XML, and much more. Intuitive...;   Qt Jambi is an application development framework that enables Java... development with Java, as well as integrated development tools that increase
Java Tutorial
and platform-independent language. It supports Multi-threading, distributed...In this section we will discuss about the Java Programming Language. This tutorial covers all the topics of Java Programming Language. In this section you
jdbc - JDBC
to serialize all of the calls that it makes to ODBC. Multi-threaded Java programs may use the Bridge, but they won't get the advantages of multi-threading. In addition... Java programs may use the Bridge, but they won?t get the advantages of multi
What are the prerequisites for learning Java?
handling is explained with many Java example codes.   Threading in Java - Multi threading is one of most used features of Java for executing... Glossary Q - Java Terms R - Java Terms S - Java Terms T
What are the prerequisites for learning Java?
example codes.   Threading in Java - Multi threading is one... Glossary O - Java Glossary P - Java Glossary Q - Java Terms...Learning Java: What are the prerequisites for learning Java? In this article
Thread
Thread  What is multi-threading? Explain different states of a thread.   Java Multithreading Multithreading is a technique that allows a program or a process to execute many tasks concurrently (at the same time
Chapter 1. EJB Overview
low-level transaction and state management details, multi-threading... applications follow the Write Once, Run Anywhere™ philosophy of the Java... vendors. BenefitsADS_TO_REPLACE_3Defines the integration of EJB with the Java
Schedular starting problem - Servlet Interview Questions
Schedular starting problem  Hello, I have a schedular called Billing schedular which suppose to run everyday at 2:15 AM (Created in servelt, multi threading and using quartz.jar API). This was running fine. But since last 7 days
Java Programming Books
Java Programming Books         Sams Teach Yourself Java 2 in 24 Hours... this brief: This Java programming stuff is a lot easier than it looks. I'm
Bridge Pattern
;); questions.add("What is multi-threading? "... is multi-tasking?  What is multi-threading?  What...;priorQuestion(); public void newQuestion(String q); public void 
write following program
threaded application and multithreaded application? What are the benefits of multi-threading. Explain with examples Q2 Write a java applet that takes your name... diagram of a thread Q6 Write a java applet that displays 9 squares, one below
Apollo for Eclipse
for creating multi-threaded applications. Only the Professional Edition offers the breadth of advanced optimization, multi-threading, and processor support.... The Professional Edition combines a high performance compiler with IntelŪ Threading
C++ Compiler for Linux
for creating multi-threaded applications. Only the Professional Edition offers the breadth of advanced optimization, multi-threading, and processor support.... The Professional Edition combines a high performance compiler with IntelŪ Threading
java
java  diff bt core java and java
java
java  what is java
JAVA
JAVA  how the name came for java language as "JAVA
java
java   why iterator in java if we for loop
java
java  explain technologies are used in java now days and structure java
java
java  different between java & core java
Java
Java   Whether Java is pure object oriented Language

Ads