School of Physics, Mathematics, and Computing 
Not logged in (login)
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.

How do I ask a good question?
 
Options:
RSS cloud
Jump to:

There are 48 articles from Amitava Datta

48 of 1097 articles shown, currently no other people reading this forum.

UWA week 44 - 2nd semester, 1st exam week

photo Re: 2018 Q4a) (2) (all 4)
Thu 4th Nov 2021, 11:57am, Amitava D.
ANONYMOUS wrote: Some of the pages of the process - instead of part of the process This is more precise. It is otherwise unclear how a process can be fragmented.
photo Re: Comments in exam (both)
Thu 4th Nov 2021, 9:10am, Amitava D.
ANONYMOUS wrote: It's ok if you don't write comments.
photo Re: 2018 question 4a) part 2 (both)
Thu 4th Nov 2021, 8:48am, Amitava D.
ANONYMOUS wrote: The writing is sloppy. 'it moves' - what moves? 'more blocked programs' - programs are not blocked, processes are blocked.
photo Re: Advantage when taking exam online (all 4)
Thu 4th Nov 2021, 8:04am, Amitava D.
ANONYMOUS wrote: I taught CITS2200 last semester. I had about 80 students who wrote online exam. I didn't see any difference in performance or marks. The exam paper is set in a way that someone well prepared can write comfortably within two hours. We make...
photo Re: 2018 exam question 4a) (both)
Thu 4th Nov 2021, 7:17am, Amitava D.
ANONYMOUS wrote: An I/O request will always be satisfied if it is a legitimate request. "when it is waiting for the I/O request to be satisfied". "A process may be swapped" - swapped is not a correct word here. The state of a process is changed.
photo Re: 2018 exam q2 (both)
Thu 4th Nov 2021, 7:14am, Amitava D.
sheet = &row; You are extracting the address of a pointer, there is no need, row is a pointer. You hardly ever need to do this. Your sheet should be a two-dimensional array of cells, here, your sheet is storing just one cell.
photo Re: 2020 exam question 4a (all 4)
Thu 4th Nov 2021, 7:07am, Amitava D.
ANONYMOUS wrote: Normally the parent process will wait for the child to terminate, as the OS tries to maintain a process hierarchy. The wait() call in the lecture slide was just for illustration, it is not necessary for the parent to execute the wait()...
photo Re: 2018 question 4b (both)
Thu 4th Nov 2021, 6:53am, Amitava D.
ANONYMOUS wrote: What do you mean by this "It is the associated data operated upon by the program." I feel this type of out of context statements make me suspicious about your understanding.
photo Re: 2020 Q3 (all 3)
Thu 4th Nov 2021, 6:49am, Amitava D.
ANONYMOUS wrote: Since you have written the code, you can compile and execute and see whether it is correct. It will take for me 30-40 minutes to read code and certify correctness, and even then I may be wrong.
photo Re: 2020 Q6b) (both)
Thu 4th Nov 2021, 6:47am, Amitava D.
A bit ambiguous, for example, "The OS moves data from processes that are not immediately needed out of the RAM" - Why or when a process is not needed? Did you mean data that is not needed? Why not code? pages of processes that are not needed is better....

UWA week 43 - 2nd semester, study break

photo Re: Cannot access past exams/ exam solutions (all 9)
Sat 30th Oct 2021, 5:43pm, Amitava D.
The papers should be accessible now. But why do you need solutions? A university education is not about 'passing', it is about building confidence, building the ability to criticize and judge one's understanding. University is not a school. At least I...
photo Re: Curly brackets (all 3)
Sat 30th Oct 2021, 12:40pm, Amitava D.
ANONYMOUS wrote: Is it hard to write {? You can write two ( s one below the other. I don't think indenting is acceptable.
photo Re: 2019 question 6b (all 5)
Sat 30th Oct 2021, 11:43am, Amitava D.
ANONYMOUS wrote: frames are fixed sized locations in the RAM, pages occupy frames. The answer is ok, but all 'frames' should be changed to 'pages'.
photo Re: 2019 question 6b (all 5)
Sat 30th Oct 2021, 11:43am, Amitava D.
ANONYMOUS wrote: frames are fixed sized locations in the RAM, pages occupy frames. The answer is ok, but all 'frames' should be changed to 'pages'.
photo Re: 2019 question 6b (all 5)
Sat 30th Oct 2021, 11:05am, Amitava D.
ANONYMOUS wrote: frames are fixed sized locations in the RAM, pages occupy frames. The answer is ok, but all 'frames' should be changed to 'pages'.
photo Re: 2019 question 6b (all 5)
Sat 30th Oct 2021, 11:05am, Amitava D.
ANONYMOUS wrote: frames are fixed sized locations in the RAM, pages occupy frames. The answer is ok, but all 'frames' should be changed to 'pages'.
photo Re: 2020 exam question 1 (all 9)
Sat 30th Oct 2021, 11:03am, Amitava D.
ANONYMOUS wrote: less than 1 KB is not much on the stack (and it gets freed when the function returns). But it is not good to allocate very large arrays on the stack, and you should remember to 'free' when the function returns, if you use malloc.
photo Re: 2020 exam question 1 (all 9)
Sat 30th Oct 2021, 10:57am, Amitava D.
Thanks Chris! I discussed the difference between Java and C in one of the lectures. Java has a garbage collector that checks for allocated memory in the heap that do not have any reference from the stack (and hence there is no way of accessing those memory...
photo Re: exam scope (all 5)
Thu 28th Oct 2021, 1:06pm, Amitava D.
ANONYMOUS wrote: All parts are important!
photo Re: Exam - #include (all 3)
Thu 28th Oct 2021, 1:00pm, Amitava D.
But you cannot write : #include <lecture_slides> to answer all the questions (missing that emoji)
photo Re: 2019 question 6a (all 5)
Thu 28th Oct 2021, 12:58pm, Amitava D.
ANONYMOUS wrote: It is somewhat better. The set of instructions in a loop are in contiguous locations in memory, hence referential locality is satisfied. Same data item is not referenced again and again, if you are adding the numbers in a large array,...
photo Re: Hashtables in exam? (all 3)
Thu 28th Oct 2021, 12:53pm, Amitava D.
ANONYMOUS wrote: I wrote some clarifications on hash table for Project 2
photo Re: Unequal partitions & internal fragmentation (both)
Thu 28th Oct 2021, 12:51pm, Amitava D.
ANONYMOUS wrote: not 'largest', it should be 'large-enough' to accommodate the process. I think I overlooked this in the slide. Perhaps 'smallest (large-enough)' is better.
photo Re: 2019 question 6a (all 5)
Thu 28th Oct 2021, 8:37am, Amitava D.
I fully agree with Chris. A second-year level unit at a university requires a student to demonstrate their understanding using correct technical language. What I see many times is that it is impossible for me to judge any understanding due to casual language....

UWA week 42 - 2nd semester, week 12

photo Re: fina exam past papers (all 5)
Fri 22nd Oct 2021, 8:16am, Amitava D.
ANONYMOUS wrote: Both Chris and I do not provide sample answers. It is far more beneficial for you to write the answers and get our (and other students') comments. And there is no harm if you post your answer here. Though I can also give my comments if you...

UWA week 36 - 2nd semester, mid-semester break

photo Project clarification in simple language (2 minutes reading)
Thu 9th Sep 2021, 3:57pm, Amitava D.
I am getting many emails from students who do not understand what they are expected to do in this project. Actually Chris has explained it in details, with utmost care to be unambiguous. Still I feel I need to explain. ***The aim of the project is to write...

UWA week 34 - 2nd semester, week 5

photo Re: Recommendation of working with partners (all 3)
Thu 26th Aug 2021, 2:10pm, Amitava D.
ANONYMOUS wrote: Writing code is only a part (smaller part) of the project. There is a lot to discuss and plan, and you will see that you will get a clear idea about how to split the coding at that stage.

UWA week 33 - 2nd semester, week 4

photo Re: about project1 (all 3)
Fri 20th Aug 2021, 7:56am, Amitava D.
The first lecture of week 3 is very important. Try to understand it well.
photo Re: Alias for default c program (all 5)
Wed 18th Aug 2021, 1:10pm, Amitava D.
create a file where you put all the header files (include statements) and include that file. Including the main() in that file is not advisable, as your code will look strange and chances of mistake are higher.

UWA week 32 - 2nd semester, week 3

photo CITS discord server
Thu 12th Aug 2021, 2:20pm, Amitava D.
https://discord.gg/CvSbXJaTdR I have been requested to post the link for the CITS discord server here. Please note that no teaching staff of CITS2002 will post or monitor the posts on the discord server. help2002 is the only official discussion forum for...
photo Re: How to open Ubuntu in Desktop and lab's solution ? (both)
Thu 12th Aug 2021, 8:49am, Amitava D.
https://teaching.csse.uwa.edu.au/units/CITS2002/labsheets/install-linux.php Have you read this document? You can report here what exactly is going wrong, others can help you. Have a look at this page for lab solution: https://teaching.csse.uwa.edu.au/units/CITS2002/schedule.php...
photo Re: about static variable (all 9)
Wed 11th Aug 2021, 11:38am, Amitava D.
ANONYMOUS wrote: You can only read strings from the command line, if you want an argument to be an integer, you have to use the atoi() (ascii to integer) function. Is that the problem?
photo Re: How to actually open rotate.c (all 5)
Wed 11th Aug 2021, 9:35am, Amitava D.
Great reply Lewis!
photo Re: #include "first_day_of_month.c" // file not found.... (all 3)
Wed 11th Aug 2021, 8:25am, Amitava D.
ANONYMOUS wrote: Try the ls command to check whether the file is in the current directory, the name should be listed. But as Chris has written, there is no need to include the file if you already have the code in your source file. This is an error message...
photo Re: Segmentation fault (core dumped) (all 7)
Wed 11th Aug 2021, 8:05am, Amitava D.
argv[0] is the name of the executable, argv[1]... the other command line arguments. I think you are not passing enough command line arguments. You must pass least 3 strings for argv[2] to be defined.

UWA week 31 - 2nd semester, week 2

photo How to install linux
Fri 6th Aug 2021, 8:22am, Amitava D.
I suspect many students are missing this important link by Chris. I am posting it here. https://teaching.csse.uwa.edu.au/units/CITS2002/labsheets/install-linux.php
photo Re: Marked Labs? (all 3)
Fri 6th Aug 2021, 8:15am, Amitava D.
ANONYMOUS wrote: The assessments are mentioned in a table in the unit page: https://teaching.csse.uwa.edu.au/units/CITS2002/ The labs are not assessed, there are two projects, 25% each and a final exam 50%. We are not using Moodle (unlike in CITS2200) for...
photo Re: lab 1 (all 12)
Thu 5th Aug 2021, 8:48pm, Amitava D.
ANONYMOUS wrote: There is also a simpler editor in Ubuntu called 'gedit' Just $gedit <enter> will open it, there is a menu at the top-left corner for loading file. There is a save button to save after editing.

UWA week 30 - 2nd semester, week 1

photo Clarification on the venue for tomorrow's Lect/Tute or workshop
Thu 29th Jul 2021, 11:57am, Amitava D.
The reason both Ross LT and Clews LT have been mentioned in CAS is due to the small capacity of each venue compared to the total enrollment in this unit. Chris will present in Ross, and our guess is that the number of students attending can be accommodated...
photo Working regularly
Wed 28th Jul 2021, 8:52pm, Amitava D.
I would like to mention something here. This is not a unit where you can gather some information and pass an examination, or do well. This unit requires regular work and thinking. The concepts take time to sink in. I have taught CITS2200 for many years,...
photo Re: Program (all 7)
Wed 28th Jul 2021, 6:39pm, Amitava D.
Thanks Chris for the clarification.
photo Re: Friday Workshop (all 4)
Wed 28th Jul 2021, 9:55am, Amitava D.
ANONYMOUS wrote: It is not labelled incorrectly. It has been labelled as "LecTute" so that it is recorded (some kind of admin complication that we need not bother about). It will be held each week, it will be recorded and will be available in LMS.
photo Re: subtitles (all 6)
Wed 28th Jul 2021, 9:52am, Amitava D.
Yes, as 'anonymous' mentioned, so sort of a transcript is available, you can have a look at it.
photo Re: subtitles (all 6)
Wed 28th Jul 2021, 9:15am, Amitava D.
Perhaps the microphone volume is too high, I will reduce the volume. But I don't think giving subtitle is possible.
photo Re: Program (all 7)
Wed 28th Jul 2021, 9:10am, Amitava D.
ANONYMOUS wrote: Yes, you can run the gcc compiler in OSX.
photo Re: Program (all 7)
Tue 27th Jul 2021, 1:12pm, Amitava D.
As Chris has written, he will show you the basics this Friday. I would just add that we need almost nothing except a C compiler and a text editor. You have to type the C program in the text editor, save it with a .c extension, and then use the gcc compiler...
photo Re: online students (all 3)
Mon 26th Jul 2021, 5:26pm, Amitava D.
It is recording, streaming is difficult as I often use the overhead projector for illustrating concepts. But the recording will be available within 30 minutes of the lecture.
photo Welcome to CITS2002 discussion forum
Mon 26th Jul 2021, 10:27am, Amitava D.
We will discuss all issues related to this unit here. You need to use your pheme credentials to login to this forum.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:37am Nov 14 2021