Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is multi-threading a property of a language (like java) or a property of OS?

Is multi-threading a property of a language (like java) or a property of OS?

like image 627
billu Avatar asked Jun 15 '10 04:06

billu


People also ask

Is Java a multi threaded language?

Java supports multithreading through Thread class. Java Thread allows us to create a lightweight process that executes some tasks. We can create multiple threads in our program and start them.

What is multi threading in OS?

Multithreading is the ability of a program or an operating system to enable more than one user at a time without requiring multiple copies of the program running on the computer. Multithreading can also handle multiple requests from the same user.

What are the thread properties in OS?

A thread is a flow of execution through the process code, with its own program counter that keeps track of which instruction to execute next, system registers which hold its current working variables, and a stack which contains the execution history.

What is multi threading in Java?

In Java, Multithreading refers to a process of executing two or more threads simultaneously for maximum utilization of the CPU. A thread in Java is a lightweight process requiring fewer resources to create and share the process resources.


1 Answers

Neither. It is a property of the underlying hardware. OS and languages helps us to utilize the facility provided by the hardware.

Wiki might help: http://en.wikipedia.org/wiki/Multithreading

like image 95
bdhar Avatar answered Nov 15 '22 22:11

bdhar