ANONYMOUS wrote
Hi,
What Amitava said is correct and so are the other sources (as well as Anon).
A file pointer is a pointer to a file structure, which contains useful information that makes reading writing to files easier. It allows you to treat a f...
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 a...
I am not Amitava or A lab facilitator so they may have better answers than mine but
For examples of referential locality. I would provide the examples of the activation stack and the executable code data.
Executable code will frequently be executed...
"What is the primary interface between the C11 programming language and an operating system kernel?
With respect to parameter passing, the return of results, and error handling, explain how the interface has been designed to be as consistent as possib...
"With reference to two distinct examples, explain the Principle of Referential locality, and explain how an operating system may use it to improve performance."
Hi, in the above question, I am bit confused with the type of examples that would have to ...
I think it's worth noting (and please correct me if you think I'm wrong), that we may have multiple clusters. For example, our code instructions will obviously often cluster particularly when sequential execution, or looping occurs.
And independent...
Hi all I'm currently on Past Exam 2021 Question 5. I'm wondering if for
"""
A computer system employing 32-bit addresses implements virtual memory
using a two-level page table.
The right-most 10 bits of each virtual address are used to specify the requ...
ANONYMOUS wrote
From my understanding, file descriptors are low-level system calls USUALLY handled by the operating system that returns a single int which represents the currently opened file. Remember that C is a program that is used to contact dir...
Hello,
I went to see Amitava today to ask him about file pointers vs file descriptors, I understand what a file descriptor is but I was told by Amitava that a file pointer is just a pointer that points at the file descriptor. But other sources on goog...
ANONYMOUS wrote
All good, this question isn't worded well.
This is the program you are meant to make.
If there are 3 executable programs named ls and 2 named cp that can be found via a PATH environment variable, then the function wil...
For give my poor English, this question really confused me
You are asked to write a C11 function to locate and print all potential trojan- horse programs found via a user s PATH environment variable. The C11 function should have the prototyp...