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

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

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

Computer/software Expert provides Training to IT Industry level

Multi-threading is a more "light weight" form of concurrency: there is less context per thread than per process. As a result thread lifetime, context switching and synchronisation costs are lower. The shared address space (noted above) means data sharing requires no extra work. Multi-processing has...
read more
Multi-threading is a more "light weight" form of concurrency: there is less context per thread than per process. As a result thread lifetime, context switching and synchronisation costs are lower. The shared address space (noted above) means data sharing requires no extra work. Multi-processing has the opposite benefits. Since processes are insulated from each other by the OS, an error in one process cannot bring down another process. Contrast this with multi-threading, in which an error in one thread can bring down all the threads in the process. Further, individual processes may run as different users and have different permissions. 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

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

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

IT Professional Trainer with 15 years of experience in IT Industry

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 runs 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. Typically, multiprocessing allows us to run multiple programs at the same time, and multithreading helps us in making our programs more efficient and responsive. 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

View 23 more Answers

Related Questions

Hi sir, I'm confused between .net and java. What to choose for a career. I have little bit knowledge of asp.net. Please guide me for this. Thank you
Hello Kirit, The application which were devloped about 2 decades back was mostly coded in java and so you will see so many of the application (in several company and outside) written in java. .Net(collectively...
Kirit
What is a singleton class and when do you use it?
Singleton class have a private constructor. while we can't create an object from outside of class, we can create an object only once.
Prakash
My name is Rajesh , working as a Recruiter from past 6 years and thought to change my career into software (development / admin/ testing ) am seeking for some suggestion which technology I need to learn ? Any job after training ? Or where I can get job within 3 months after finishing my training programme- your advices are highly appreciated
Mr rajesh if you want to enter in to software Choose SAP BW AND SAP HANA because BW and HANA rules the all other erp tools next 50 years.it provides rubust reporting tools for quicker decesion of business It very easy to learn
Rajesh
1 0
6
How does Java implement polymorphism?
Java implements polymorphism in two ways: 1. Static or compile-time polymorphism is done by method overloading (more then one methods sharing the same name but different number/types/order of parameters) 2....
Sajjan
0 0
6
What exactly the work of constructor( default, parameterized) especially about instance variables initialization. Suppose user initialize the instance variables explicitly. Then what is the use of parameterized constructor over here.. Please reply me
Construct as the name suggest are used to construct the object. So, they are invoked only once and that too at the time of object creation. Default Constructor : Initialize all the instance variables...
Surekha

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

Ask a Question

Related Lessons

Features Of Java
There is given many features of java. They are also known as java buzzwords. The Java Features given below are simple and easy to understand. i. Simple ii. Object-Oriented iii. Portable iv. Platform...

Class, Object and Methods in JAVA
Lesson-1: Class, Object and Methods of Java can be compared with body, heart and brain. Without these 3 things, Java does not exist. If you Google the above 3 items, you will find many definitions. But...

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

Java 8 Predicates
In the previous lession, we have learnt how to use filters and collectors. In filter we have passed the condition to evaluate whether the object is eligible to be filtered or not. Code given below for...

What Is Java? Explain The History Of Java
i. Ovierview: Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems' Java platform (Java...

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