0 votes 0 votes What is the difference between a job,a process and a thread? Operating System process operating-system + – Devshree Dubey asked Aug 20, 2018 Devshree Dubey 356 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Shaik Masthan commented Aug 21, 2018 reply Follow Share 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 votes 1 votes Devshree Dubey commented Aug 21, 2018 reply Follow Share @Shaik Masthan,Thank you so much brother for this explanation. :) 1 votes 1 votes Please log in or register to add a comment.
0 votes 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) Dharmesh Gusai 1 answered Aug 20, 2018 Dharmesh Gusai 1 comment Share Follow See 1 comment See all 1 1 comment reply Devshree Dubey commented Aug 20, 2018 reply Follow Share @Dharmesh Gusai 1,Could you please give some specific examples? 0 votes 0 votes Please log in or register to add a comment.