ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Core Java
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1728)
 Advanced Java interview questions  Advanced Java Interview Questions (332)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (147)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
what is the difference between multitasking and 
multithreading?
 Question Submitted By :: Core-Java
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
multitasking infers the mechanism to run many processes
simultaneously with user interaction.
in contrast,multithreading is
a mechanism of running various threads under single process
within its own space.
 
Is This Answer Correct ?    232 Yes 18 No
Priyanjan
 
Answer
# 2
multitasking:heavyweight process and runs in a different
address space so context switch or intercommunication
between processes is much expensive.

Where as multithreading: light weight process and can run
in a same address space so context switch or
intercommunication between processes is less expensive.
 
Is This Answer Correct ?    134 Yes 20 No
Denish Kanabar
 
 
 
Answer
# 3
multitasking ::: is a method by which multiple tasks, also
known as processes, share common processing resources such
as a CPU. With a multitasking OS, you can simultaneously run
multiple applications. Multitasking refers to the ability of
the OS to quickly switch between each computing task to give
the impression the different applications are executing
multiple actions simultaneously.

Multithreading ::: extends the idea of multitasking into
applications, so you can subdivide specific operations
within a single application into individual threads. Each of
the threads can run in parallel. The OS divides processing
time not only among different applications, but also among
each thread within an application.
 
Is This Answer Correct ?    91 Yes 16 No
Divya
 
Answer
# 4
A multi threaded program contains 2 or more threads

running concurently.
In a multitasking environment 2 or more processes will run
concurently.
Multithreading requires less overhead than
multitasking.

Interprocess communication is very expensive
and context switching from one process to another procees
is costly since they are runningin different address spases.

In case of multithreading threads are lightweightprocess and
can share same addressspace and interthread communication
is less.

expensive
than interprocees
 
Is This Answer Correct ?    33 Yes 5 No
Geetha.v
 
Answer
# 5
MULTITASKING:
multitasking ,in an operating system is
allowing user to perform more than one computer task at a
time.
MULTITHREADING:
the ability of an operating system to execute
different parts of the program called
threads,simultaneously.the programmer must carefully design
the program in such a way that all the threads can run at
the sametime without interfering with each other.
 
Is This Answer Correct ?    30 Yes 11 No
Geetha Krishna
 
Answer
# 6
Multitasking is of two types
1> process based.
2>thread based.
 
Is This Answer Correct ?    29 Yes 16 No
Mukesh Gupta
 
Answer
# 7
multitasking :multitasking is a method by which multiple
tasks, also known as processes, share common processing
resources such as a CPU. With a multitasking OS, you can
simultaneously run multiple applications.

Multithreading : extends the idea of multitasking into
applications, so you can subdivide specific operations
within a single application into individual threads. Each of
the threads can run in parallel. The OS divides processing
time not only among different applications, but also among
each thread within an application
 
Is This Answer Correct ?    17 Yes 5 No
Ashok Kumar
 
Answer
# 8
MULTITASKING MULTI THREADING
************ ***************
1.multi threaded program In a multitasking environment
contains 2
or more threads 2 or more processes will run
running concurrently. concurrently.

2.Process are heavyweight Threads are lightweight proces
process that require their &can share same address space
own address space interthread comm is less
expensive than IPC
3.More expensive: Less expensive:
runs in diff address space runs in same address space thus
thus context switching or context switching or IPC b/w
IPC b/w process is high. process is low.

4.The operating system is Multi threading is the ability
able to keep track of where of pgm or an OS process to
you are in there task & go manage its use by more than one
from one to the other user at a time & to even manage
without losing information multiple request by the same
user without having to have

. multiple copies of the pgm
running in the computer
 
Is This Answer Correct ?    11 Yes 2 No
Levin Jack
 
Answer
# 9
MULTITASKING:
multitasking ,in an operating system is
allowing user to perform more than one computer task at a
time.
Multithreading:
Multithreading is a mechanism of running various threads
under single process
within its own space.
 
Is This Answer Correct ?    18 Yes 10 No
Seetaram
 
Answer
# 10
multitasking :
1. Multiple tasks, also known as processes, share common
processing resources.
2. You can simultaneously run multiple applications.
3. Heavyweight process
4. Every process have different address space so context
switch or intercommunication between processes is much
expensive.

Multithreading :
1. Subdivide specific operations within a single application
into individual threads.
2. Each of the threads can run in parallel. OS divides
processing time not only among different applications, but
also among each thread within an application.
3. Light weight process
4. Threads for the same application share same address space
so context switch or intercommunication between threads is
less expensive.
 
Is This Answer Correct ?    6 Yes 0 No
Pushpendra Singh Gorwa
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
is this possible to create an array of 0 length? if so how? if not so why? coz we have an array in main() likw this "static void main(String [] s) then what it signifies? Hexaware 3
Does Java support multiple Inheritance?   12
What is "Java Native Interface" and how to use it? IBM 1
which one is performance wise advantageious from List,Set,Map?   6
Write java code to print "Hello how are you" Thread1 should have "Hello" Thread2 should have "how are you" both the threads should start at the same time Huawei 4
what is the Diff. between Access Specifiers and Access Modifiers? Wipro 38
how to identify duplicate values in arraylist TCS 1
why abstract class does not have object creation Value-Labs 5
What is Map interface? Wipro 3
Difference between JDK, JRE, JVM Oracle 16
what is type of statement in jdbc connection?   3
int a=1,b=10; System.out.println(a+b--); hcl 12
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com