what is the difference between multitasking and
multithreading?
Answers were Sorted based on User's Feedback
Answer / pooja
multitasking called heavy weight processes(hwp).
mulithreading called light weight processes(lwp).
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / aditya
multi tasking:it refers to making number of works at atime
each with its specific address...i.e example:a web browser
we can operate google,social networking sites etc at a time
but each has its specific address bar or address
multi threading: it refers to process many works under a
single address....i.e example:playing a multi racing game 2
players play a racing game at a time in a sinle address
oneoperates key board and other uses mouse etc to play
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / manasa
multitasking infers the mechanism to run many processes
simultaneously with user interaction.
,multithreading is
a mechanism of running various threads under single process
within its own space.
Is This Answer Correct ? | 13 Yes | 10 No |
Answer / kiran reddy
multi-threading:::
OS to execute different pats of a program will at same time with out interfacing with each other...
multitasking:::
ability to execute more then one task at the same time when a task begin program
Is This Answer Correct ? | 12 Yes | 9 No |
Answer / venu
multitasking :This is execute Many tasks one by one.
Multithreding :Tyis is execute Many tsks at the same time.
tis is share the memory one by one tasks.
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / amulya
multithreading is a specialized form of multitasking.multi threading programs contains 2 or more threads running concurrently.it requires less overhead than multitasking.in this process threads are light weight process.
multitasking contains 2 or more process will run concurrently.in this process are heavy weight tasks.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ankita chauhan
multi threading is running multiple"light weight"process in
a single process/task/program.
multi tasking running multiple"heavy weight"processes by a
single OS.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kumari pooja
-Multitasking: With a multi tasking os,you can can simultaneously run multiple applications.
+Example: A web browser, social networking sites etc.
-Multithreading: Within a single application into individual threads.
+Example : Playing a multi racing game 2 players play a racing game at a time in a single address.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sonika
Multithreading
Up to now, we have talked about multiprogramming as a way to allow multiple programs being resident in main memory and (apparently) running at the same time. Then, multitasking refers to multiple tasks running (apparently) simultaneously by sharing the CPU time. Finally, multiprocessing describes systems having multiple CPUs. So, where does multithreading come in?
Multithreading is an execution model that allows a single process to have multiple code segments (i.e., threads) run concurrently within the “context” of that process. You can think of threads as child processes that share the parent process resources but execute independently. Multiple threads of a single process can share the CPU in a single CPU system or (purely) run in parallel in a multiprocessing system
Why should we need to have multiple threads of execution within a single process context?
Well, consider for instance a GUI application where the user can issue a command that require long time to finish (e.g., a complex mathematical computation). Unless you design this command to be run in a separate execution thread you will not be able to interact with the main application GUI (e.g., to update a progress bar) because it is going to be unresponsive while the calculation is taking place.
Of course, designing multithreaded/concurrent applications requires the programmer to handle situations that simply don’t occur when developing single-threaded, sequential applications. For instance, when two or more threads try to access and modify a shared resource (race conditions), the programmer must be sure this will not leave the system in an inconsistent or deadlock state. Typically, this thread synchronization is solved using OS primitives, such as mutexes and sempaphores.
Is This Answer Correct ? | 1 Yes | 0 No |
Is char a data type in java?
How can you read content from file in java?
Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?
What is the requirement of thread in java?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is the difference between parameters and arguments ?
Java is Pass by Value or Pass by Reference?
84. try { 85. ResourceConnection con = resourceFactory.getConnection(); 86. Results r = con.query(”GET INFO FROM CUSTOMER”); 87. info = r.getData(); 88. con.close(); 89. } catch (ResourceException re) { 90. errorLog.write(re.getMessage()); 91. } 92. return info; Which is true if a ResourceException is thrown on line 86? 1 Line 92 will not execute. 2 The connection will not be retrieved in line 85. 3 The resource connection will not be closed on line 88. 4 The enclosing method will throw an exception to its caller.
What is singleton service?
What is a variable declaration?
What is your platform’s default character encoding?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?