answersLogoWhite

0

No. A subroutine (also known as a procedure or function) is best thought of as being a task. The executable (program) is the actual process. Every process has at least one thread of execution and each thread has its own local call stack. Thus multiple threads may concurrently execute the same task independently of any other threads within the same process. This is useful when we have a large or time-consuming task which can be broken down or divided up into smaller instances of the same task; each thread handles a small portion of the overall task and operates concurrently with all other instances of that task. Depending on how many CPU cores we have available, multiple threads of execution should complete the whole task quicker than a single thread would have. That is, if we divide the task into four, we could potentially complete the whole task in 1/4 of the time it would take with just one thread of execution.

User Avatar

Wiki User

7y ago

What else can I help you with?

Related Questions

What is language is called middle level language?

Why is C called a Middle Level Language?


What are subroutines and are they used in batch files scripts neither or both?

Subroutines are code blocks that can be called from anywhere in your code where the subroutine is within the scope of the caller. They are not used in batch files or command scripts, but they may be emulated by calling one batch file from another and waiting for the external call to return, which may (optionally) return an error level which can be tested by the caller. Subroutines can be used in other scripts, including vbscript and javascript. Subroutines may also be called functions or procedures depending on the type of script.


Why C language is called mid level language justify with an example?

C language support bit-level manipulation that are normally done in assembly or machine level language. C reduce the gap between high level and low level language. So, it's called as middle level language.


What is a program written in high level language called?

the program written in high level language is called "source program"


Is c is middle level language justify your answer?

No, there is no such thing as 'middle level language'. C is high level language, and it is no way similar to Assembly language.


What is the difference between high level language and low level language?

A programming language that is machine-independent is called a "high-level" language - this includes Java, C++, Python, etc. A programming language that is machine-dependent is called a "low-level" language. For PCs, this usually includes assembly, binary code or some proprietary languages on embedded devices.


Why assembly language is called low level language?

Because it cannot be understood by users. High level language like C can be understood by the user by looking at its source code. But assembly level language does not have any source code, its a language converted from high level language to low level language (assembly level language or machine level language) so that the language which the user could read/understand can also be read/understand by the machine.


What device is used in computer for converting a high level language to machine language is called?

Compiler.


What is High Level Languages and Low Level Languages?

High-level and Low-level term are used to differ any computer programming language whether it is easily understandable to human or not.High Level Language means the language is easily understandable, andLow Level Language means the language is more to a machine language than human understandable language.High-level and Low-level term are used to differ any computer programming language whether it is easily understandable to human or not.High Level Language means the language is easily understandable, andLow Level Language means the language is more to a machine language than a human understandable language.


What are high level languages how they differ from assembly languages?

HIGH LEVEL LANGUAGE The program weitten in English language which eassier to understand by user is called high level language. ASSEMBLY LANGUAGE The program written in symbolics form is called assembly language. In which the symbols are used like sub,mul,div, etc.it also called symbolic language. DIFFERENCE HIGH LEVEL LANGUAGE ASSEMBLY LANGUAGE 1) It is a source code. 1) It is a object code. 2) It is convertd in machine 2) It is convertd in machine language using compiler. language using assemblier.


What is the level of assembly language?

Assembly languages are low level languages, sometimes also called machine-level languages.


A program written in a high-level programming language is called?

the program written in high level language is called "source program"