UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is difference between Multithreading and miltiprocessing?

Asked by Last Modified  

25 Answers

Learn Java

Follow 1
Answer

Please enter your answer

Java Trainer

It is simple to understand. You question itself contains the answer. Only the keynote is: A single processor/core of the cpu can execute single task at a time, not more than one task. And you should be able to differentiate process and processor. process: is a task / small part of process processor:...
read more
It is simple to understand. You question itself contains the answer. Only the keynote is: A single processor/core of the cpu can execute single task at a time, not more than one task. And you should be able to differentiate process and processor. process: is a task / small part of process processor: who performs the task (CPU) Assume you have two computer, one with dual/multi core (Ex: core2duo, dual core or quad core) processor and other with a old single core processor. And if you have a program which wants to perform two different operations / processes, you can go with multi core processor cpu to run the two tasks. What if you want to run these two operations on single core processor? You can run these two operations at a time with single core processor. Hence, running two processes/operations on different processors/cores is called as multi processing. You can also achieve multi processing with single CPU. When a processor/core of the cpu is waiting / idle, Operating system will take the control of the cpu and assigns the cpu to another process/operation. With multiprocessing there is an overhaed, i.e., CPU handling by operating system (formally known as context switch). assigning processor to processes, and taking back. What about Multithreading? Asume you have to complete two operations, with a single process? Just divide the process into multiple threads to complete different operations. As the entire process is inside the CPU, there won't be any overhaed/delay. In this case, Even if you have multi core cpu, only one core of the cpu will complete the two operations/threads. Program can contains multiple processes. Process can contain multiple threads. read less
Comments

Experienced and Qualified Trainer with 15 years of experience in Top Colleges of Hyd .

Thread is a part of the program,so a program has multiple threads whereas multiprocessing means a cpu (or multiple cpu) process multiple programs at a time.
Comments

Multitasking Running more then one application to perform a certain task. Example: listening Song, playing game, work in ms word, excel and other applications simultaneously Multithreading extends the idea of multitasking into applications, so you can subdivide specific operations within a single...
read more
Multitasking Running more then one application to perform a certain task. Example: listening Song, playing game, work in ms word, excel and other applications simultaneously Multithreading extends the idea of multitasking into applications, so you can subdivide specific operations within a single application into individual threads. Multiprocessing Running... more» - read less
Comments

Multithreading and multiprocessing, both refer to the ability of doing multiple things within a context. Multiprocessing refers to the ability to run multiple programs (or processes) simultaneously within one operating system. Multithreading on the other hand refers to the ability to run multiple threads...
read more
Multithreading and multiprocessing, both refer to the ability of doing multiple things within a context. Multiprocessing refers to the ability to run multiple programs (or processes) simultaneously within one operating system. Multithreading on the other hand refers to the ability to run multiple threads simultaneously within a process. When we run a browser, an email client, and a word processor simultaneously on the same operating system, it is an example of multiprocessing. However, each of these processes, can have multiple threads, which may be run simultaneously within that process read less
Comments

Let's simplify Coding, It's a great Fun.

Hi, Multiprocessing methods means more than processes are executing and competing with each other to get executed, Every process is a independent execution context with its own set of resources and instructions, in other way, process do not share the resources of each other. Multithreading means...
read more
Hi, Multiprocessing methods means more than processes are executing and competing with each other to get executed, Every process is a independent execution context with its own set of resources and instructions, in other way, process do not share the resources of each other. Multithreading means more than one thread are competing and coordinating with each other to get executed, like process thread is also a running execution context but in quite light weight than process. threads can share the resources with counterparts threads thereby avoiding them to maintain the resources independently. . vijay read less
Comments

Coaching

Multiprocessing is two or more physical, actual processors inside one computer. They are both doing work at the same time, and perhaps on the same 'jobs' or different jobs. A high powered OS would be required to utilize this sort of setup, and it also involves some hardware considerations. A multithreaded...
read more
Multiprocessing is two or more physical, actual processors inside one computer. They are both doing work at the same time, and perhaps on the same 'jobs' or different jobs. A high powered OS would be required to utilize this sort of setup, and it also involves some hardware considerations. A multithreaded program utilizes the power of one single processor to appear to be doing more than one thing at a time, while in fact, each job is merely time-sharing the processor. The processor only does one thing at at time, The typical difference is that threads (of the same process) run in a shared memory space, while processes run in separate memory spaces. Threads are lightweight compared to processes.It share the same address space and therefore can share both data and code. Context switching between threads is usually less expensive than between processes Cost of thread intercommunication is relatively low that that of process intercommunication.Threads allow different tasks to be performed concurrently. read less
Comments

Experienced QA Trainer

Multithreading- A computer running more than one program at a time (like running Excel and Firefox simultaneously) Multiprocessing - A computer using more than one CPU at a time Multitasking - Tasks sharing a common resource (like 1 CPU) • Thus, something like multithreading is an extension...
read more
Multithreading- A computer running more than one program at a time (like running Excel and Firefox simultaneously) Multiprocessing - A computer using more than one CPU at a time Multitasking - Tasks sharing a common resource (like 1 CPU) • Thus, something like multithreading is an extension of multitasking. read less
Comments

IT Professional Trainer working with a reputed Institute. Headquarters: Hyderabad

There are two distinct types of multitasking; 1. Process-based 2. Thread-based. It is important to understand the difference between the two. A process is, in essence, a program that is executing. Thus, process-based multitasking is the feature that allows your computer to run two or more programs...
read more
There are two distinct types of multitasking; 1. Process-based 2. Thread-based. It is important to understand the difference between the two. A process is, in essence, a program that is executing. Thus, process-based multitasking is the feature that allows your computer to run two or more programs concurrently. For example, it is process-based multitasking that allows you to run a word processor at the same time you are using a spreadsheet or browsing the Internet. In process-based multitasking, a program is the smallest unit of code that can be dispatched by the scheduler. A thread is a dispatch able unit of executable code. The name comes from the concept of a “thread of execution.” In a thread-based multitasking environment, all processes have at least one thread, but they can have more. This means that a single program can perform two or more tasks at once. For instance, a text editor can be formatting text at the same time that it is printing, as long as these two actions are being performed by two separate threads. read less
Comments

5+ years of experience in computer science with c++ for class 11th and 12th , java, spring mvc, angular.js for MCA, BCA, 12th, B.tech. Working as Team leader in IT company

multiple programs/processes running concurrently is mutiprocessing. When a single Program/process uses sub processes or threads concurrently then it is multithreading
Comments

Java/J2EE, B.E./B.Tech/MCA SubjectsTraining

Multiprocessing Multithreading OS controls switching JVM controls switching Different processes can use different languages Threads all use the same language Each process has its own...
read more
Multiprocessing Multithreading OS controls switching JVM controls switching Different processes can use different languages Threads all use the same language Each process has its own JVM All threads share a single JVM read less
Comments

View 23 more Answers

Related Questions

hi this iz sunil here I done with my b.sc in cs and planning to go fr java course shld I prefer for institution or a lecturer who teaches java at his own tuitions ...
You can choose either of the way, but make sure you join with right tution or instructor, make sure he teaches all the topics.
Sunil
0 0
5
I have the opportunity to learn either java or pega...what should i be targeting Pega or Java.. Also, if I m moving to Java. I will be getting immediate promotion and increment.
Java of course. You will see most of the enterprise level application are built in Java. Apart from retail, in every domain you'll see opportunity with Java
Gaurav
2 0
6
Can u explain init() method is used in servlet for initialization then constructor also there for initializing variables.then what makes the difference between init() and default constructor in servlets?
Using init() only advisable than default constructor because we cannot initialize servlet using constructor because servlets are not directly instantiated by javacode, instead container create instance...
Anwar
best source to learn java from?
Main source if information on Java is oracle documentation. But it takes your time to read through, a lot more than you expect. Better prefer a trainer who can give what you need.
Himanshu
Is it possible to learn java at home without coaching in one month?
It all depends on you. If you are already aware of programming then it is definetly possible to learn java at home. But if learn through a tutor then you can learn easily.
Pritom
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

How 4 byte float can store 8 byte long values in java ?
long l = 12464545L; float f = l; (fine) int i = l ; (Error) if we see the how this magic happens as we know the answer lies in the floating point representation as in floating points values does not...

Amazon written test for experience
For the below written test answer I defined with "*" at the end of the options NULL is the same as 0 for integer the same as blank for character * the same as 0 for integer and blank for character the...

Tips of learning Java Language/Other Programming Languages
1.You should know the basic concept: If we talk about programming languages so basic concept are same in all the high level languages. So you should know the basic concept firstly then you can easily understand...
I

ICreative Solution

0 0
0

Constructor Overloading
public class ConstructorOverloading { public ConstructorOverloading(){ System.out.println("default"); } public ConstructorOverloading(String a){ System.out.println("a"); } public ConstructorOverloading(int...
S

Sarthak C.

0 0
0

Class and Objects in Java
Class is a template or a blueprint which is used to describe an object. On other hand Object is a reference of a class which follows all the stuff written inside the class. How about taking the whole tour in the following video

Recommended Articles

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more