From f2178ecc9ae015db9aaa2abe3b49981444238c92 Mon Sep 17 00:00:00 2001 From: Amritesh <54923120+ammrit2312@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:41:16 +0530 Subject: [PATCH] Update sjf non premptive code os.cp --- sjf non premptive code os.cp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sjf non premptive code os.cp b/sjf non premptive code os.cp index 76b876b..15c9249 100644 --- a/sjf non premptive code os.cp +++ b/sjf non premptive code os.cp @@ -8,6 +8,7 @@ using namespace std; #include +//this is a structure called process struct process{ int burst; int pid; @@ -15,7 +16,7 @@ int arrival; }; // here might be a mistake -bool sjfcomp(process a, process b) +bool sjfcomp(proc a, proc b) { return a.burst