The Gateway to Computer Science Excellence
0 votes
What is the difference between a job,a process and a thread?
in Operating System by Boss (13.8k points) | 34 views
as per my knowledge,

i will compare with JAVA program which internally use fork() system call

think in the JAVA program i use multi-threading concept, one thread will run f1(), another will run f2()

job = program ( it is present in JOB queue, in the state diagram of a process, NEW will create a process from JOB )

process = execution of program ( entering the inputs all these are going under process )

when fork() encounters..... now we have two processes but each processes contains two threads.


Thread = a small individual part in the process
@Shaik Masthan,Thank you so much brother for this explanation. :)

1 Answer

0 votes
Job is a task done by a process.

Process is a program execution in CPU.

Thread is light weight Process. (we can assume small part of Process)
by (177 points)
@Dharmesh Gusai 1,Could you please give some specific examples?
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,385 answers
105,371 users