It's UWAweek 47

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying the 7 articles in this topic
Showing 7 of 828 articles.
Currently 102 other people reading this forum.


 UWA week 43 (2nd semester, study break) ↓
SVG not supported

Login to reply

👍?
helpful
4:30pm Thu 24th Oct, ANONYMOUS

what would be the answer to this question? Explain why every process will execute at least one system call during its execution?


SVG not supported

Login to reply

👍?
helpful
4:38pm Thu 24th Oct, ANONYMOUS

i believe it is because all processes do something with stdin/stdout and in order to access those it has to do a system call


SVG not supported

Login to reply

👍?
helpful
6:29pm Thu 24th Oct, ANONYMOUS

I would've said that it's because every process calls exit(), either implicitly or explicitly. But I can see it being related to stdin/out/err too. Would have been nice to get the sample answers to the past exams, it's much more helpful when you can actually check your work.


SVG not supported

Login to reply

👍?
helpful
8:37pm Thu 24th Oct, Joshua N.

ANONYMOUS wrote:
> I would've said that it's because every process calls exit(), either implicitly or explicitly. But I can see it being related to stdin/out/err too.
I would personally say exit would apply better because technically you can just make a program that does nothing and so doesn't use I/O but I/O is still a good answer.
> Would have been nice to get the sample answers to the past exams, it's much more helpful when you can actually check your work.
I know how you feel, but according to research, it is linked to better exam performance (although students have lower confidence entering the exam). Because students discuss their understanding with others and search harder for the answers, it reinforces concepts and the answers to the questions stay in their mind longer. So, Amitava isn't doing it to be mean.


SVG not supported

Login to reply

👍?
helpful
8:42pm Thu 24th Oct, ANONYMOUS

Does every process use the exit() system call to terminate?


SVG not supported

Login to reply

👍?
helpful
9:09pm Thu 24th Oct, Joshua N.

look up "_start()" for more info otherwise https://en.cppreference.com/w/c/program/exit


SVG not supported

Login to reply

👍?
helpful
7:32pm Fri 25th Oct, Amitava D.

ANONYMOUS wrote:
> what would be the answer to this question? > Explain why every process will execute at least one system call during its execution?
Each process starts with three open file descriptors, stdin, stdout, stderr - these will require system calls to open.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy