The Gateway to Computer Science Excellence
0 votes
34 views
What is the difference between a job,a process and a thread?
in Operating System by Boss (13.8k points) | 34 views
+1
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
+1
@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)
0
@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
198,558 comments
105,371 users