It's UWAweek 49

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.
455 articles posted by this person
Showing 455 of 1168 articles.
Currently 2 other people reading this forum.


SVG not supported 11:28am Tue 21st Nov, Christopher M.

(other than for about 5 students) the marking of all projects and exams is now complete. Results are still to be approved by a Board of Examiners' meeting, and will be released on Nov 28th. The summaries and histograms of our unit's components appear...


SVG not supported 1:44pm Fri 17th Nov, Christopher M.

ANONYMOUS wrote I'm afraid I can't answer why, but if you email me to indicate who you are.... The anticipated, though not required, code appears in the sample solution https secure.csse.uwa.edu.au run help2002?p np opt B1146


SVG not supported 5:26am Mon 13th Nov, Christopher M.

(Most, 337) marks for the 2nd project are now available. The average of submitted projects was 74.4 , the average of all (including not-submitted) 66.4 Congratulations to the 57 337 students receiving 45 50 or higher. 316 students have a passing mark,...


 UWA week 45 (2nd semester, 2nd exam week) ↓
SVG not supported 5:21pm Thu 9th Nov, Christopher M.

ANONYMOUS wrote We're still marking -) Still waiting on the 'manual marking' from one of our 3 markers. There are 20 projects (from 26 students) that have so many errors that we've "put them aside", and they won't be released along with the other 22...


 UWA week 43 (2nd semester, study break) ↓
SVG not supported 4:29am Sat 28th Oct, Christopher M.

ANONYMOUS wrote A stack should only be used by pushing and popping items from the top of the stack, and not by 'peeking' at the 2nd or 3rd... element. In contrast, depending on your use for it, a list may have items added and removed from its head, f...


SVG not supported 7:32pm Fri 27th Oct, Christopher M.

ANONYMOUS wrote I doubt that your notes will taken from you, but you may not be permitted to use anything other than your standard reading-glasses to read them. Just a pessimistic thought.


SVG not supported 7:29pm Fri 27th Oct, Christopher M.

ANONYMOUS wrote There's no definition of a trojan-horse that you need to detect in your code. You're being asked to find report any command names that each appear more than once in the directory names indicated by the value of PATH variable. If any p...


SVG not supported 7:15pm Fri 27th Oct, Christopher M.

ANONYMOUS wrote Still just 'Chris'. Not recursive; we're only finding files commands in the top-level of each colon-separated directory name.


SVG not supported 7:13pm Fri 27th Oct, Christopher M.

All very good questions, for which I have no answers. I've been on this "Lab Compute Modernisation Working Group" as our PMC ENG academic rep., and have been asking closely related questions for months. We've been shown a video and a basic demo of th...


SVG not supported 1:25pm Fri 27th Oct, Christopher M.

Here https secure.csse.uwa.edu.au run help2002?p np opt B1045 hl pencil


SVG not supported 9:25am Fri 27th Oct, Christopher M.

A total of 360 students submitted the 2nd project, 119 individual submissions and 121 in pairs. 162 submissions compiled without error (with -Wall -Werror); 82 did not (what is going on??) A common question has been "how many source files did student...


SVG not supported 8:57am Fri 27th Oct, Christopher M.

ANONYMOUS wrote Video or it never happened


SVG not supported 8:48am Fri 27th Oct, Christopher M.

ANONYMOUS wrote It's just a programming question, and doesn't actually require any standard-library calls or system-calls. From an era before questions became more 'authentic' to the theme of the unit.


SVG not supported 7:42am Fri 27th Oct, Christopher M.

ANONYMOUS wrote Yes - just like exams in every other unit. On the front page of thee exam answer booklet it even requires you to "List all questions in the order attempted".


SVG not supported 7:15am Fri 27th Oct, Christopher M.

ANONYMOUS wrote yes (as answered on this forum this week). You do not have to (re)write any of the standard C or POSIX functions, nor any functions that a question says you don't have too write. But if you choose for your function to use, say, a linked...


SVG not supported 7:02am Fri 27th Oct, Christopher M.

ANONYMOUS wrote Certainly, as many additional functions as you wish.


SVG not supported 6:59am Fri 27th Oct, Christopher M.

ANONYMOUS wrote Thanks, great answer. The OP should also review Lecture 9, particularly p6 https teaching.csse.uwa.edu.au units CITS2002 lectures lecture09 06.html


SVG not supported 12:42pm Thu 26th Oct, Christopher M.

ANONYMOUS wrote Why so?


SVG not supported 7:36am Thu 26th Oct, Christopher M.

ANONYMOUS wrote Politely, I really think that that's exactly what I said.


SVG not supported 6:33am Thu 26th Oct, Christopher M.

"Dumb Money dramatises the 2021 GameStop short squeeze with entertaining if morally dubious results" https www.abc.net.au news 2023-10-26 dumb-money-review-gamestop-movie-australian-release-date-oct-26 103011840 https www.youtube.com watch?v bm...


SVG not supported 6:19am Thu 26th Oct, Christopher M.

ANONYMOUS wrote While a structure is a possible solution, there are others without one. The spreadsheet described has rows and columns, with each cell element being a string. You can think of the spreadsheet as a 2D array of strings, or a 3D array of c...


SVG not supported 3:48am Thu 26th Oct, Christopher M.

"A survey of 500 developers .... found more than two-thirds (67 ) admitted they pushed code into a production environment without testing, with more than a quarter (28 ) acknowledging they do so on a regular basis. More troubling still, 60 also admit...


SVG not supported 3:41am Thu 26th Oct, Christopher M.

(a reminder than there's many different ways to implement a hashtable) But if you wished to follow an implementation requiring, say, add to list, then, yes, you'd need to write that too. You can rely of there being standard library functions, such as f...


SVG not supported 3:37am Thu 26th Oct, Christopher M.

ANONYMOUS wrote If you're really stuck during the exam then, yes, outlining a plan to address the problem (perhaps as a big comment) is better than writing nothing. BUT, please do not see this as a viable approach to passing questions - it would pro...


SVG not supported 3:29am Thu 26th Oct, Christopher M.

ANONYMOUS wrote Some of these were discussed in the final lecture on the 2022 exam paper. - There is no requirement to provide comments, but they may assist the markers' understanding if your answer is unclear. - Constants are always preferred over 'ma...


SVG not supported 6:56pm Wed 25th Oct, Christopher M.

ANONYMOUS wrote You are confusing terms. In this context, 'free'ing memory is the activity of deallocating memory previously allocated with malloc() . If you didn't malloc it (or realloc it, or strdup it...) then you don't free ...


SVG not supported 6:51pm Wed 25th Oct, Christopher M.

ANONYMOUS wrote OK, this is discussed extensively in the final (recorded) workshop.


SVG not supported 3:13pm Wed 25th Oct, Christopher M.

Oh, hang on, what do you mean by "for the appropriate directories of commands"?


SVG not supported 3:07pm Wed 25th Oct, Christopher M.

ANONYMOUS wrote Discussed extensively in the final (recorded) workshop.


SVG not supported 2:22pm Wed 25th Oct, Christopher M.

ANONYMOUS wrote No; questions will not be asking about such specific historic details.


SVG not supported 2:21pm Wed 25th Oct, Christopher M.

ANONYMOUS wrote Sounds good. Dynamic partitioning may also involve creating the 'perfect' sized partition when a brand new process requires one.


SVG not supported 2:20pm Wed 25th Oct, Christopher M.

ANONYMOUS wrote For students between 2nd and 3rd year, the summer break is the 'perfect' time for an internship. Though you may be a little late for this summer. When the CSSE department is informed of opportunities, they are posted here https secur...


SVG not supported 12:58pm Wed 25th Oct, Christopher M.

ANONYMOUS wrote What is your thinking?


SVG not supported 11:52am Wed 25th Oct, Christopher M.

ANONYMOUS wrote No, none have been. It's not structured, it's just students asking their questions.


SVG not supported 11:51am Wed 25th Oct, Christopher M.

ANONYMOUS wrote Was discussed here https secure.csse.uwa.edu.au run help2002?p np opt U1034


SVG not supported 11:50am Wed 25th Oct, Christopher M.

ANONYMOUS wrote Keep in mind that make does not understand (or perform) any compiling or linking - it simply determines (reads) what relationships exist, and then executes actions (shell commands). There's not even any requirement that the act...


SVG not supported 4:03am Wed 25th Oct, Christopher M.

ANONYMOUS wrote Hi, near the top of that page it states "certain files depend on others and, if one changes, it triggers the "rebuilding" of others". In our example if, say, calcmarks.h changes, it does not trigger the rebuilding of calcmarks.c, and ...


SVG not supported 3:57am Wed 25th Oct, Christopher M.

ANONYMOUS wrote There's no such question. May be time for you all to grow up, and stop wasting our time.


SVG not supported 3:50am Wed 25th Oct, Christopher M.

ANONYMOUS wrote It's possible, but the question will make that clear.


SVG not supported 7:05pm Tue 24th Oct, Christopher M.

You won't be required to write a Makefile for any of the (single file) programs or functions that you're asked to develop, but you can be asked about the make utility and their Makefiles.


SVG not supported 7:01pm Tue 24th Oct, Christopher M.

Any day you can actually remove code is a good day.


SVG not supported 6:58pm Tue 24th Oct, Christopher M.

ANONYMOUS wrote 3 of the 6 Leaving Outcomes of this unit explicitly mention the C programming language. All 6 Learning Outcomes are assessed in the final exam. Using pseudo-code, in place of C, does not demonstrate your understanding of C. All students ...


SVG not supported 6:49pm Tue 24th Oct, Christopher M.

ANONYMOUS wrote I think that there are both 10 page and 18 page booklets. If you fill up one, or more, booklets you can ask for another.


SVG not supported
2nd project Marks 👍x1  (both)
6:46pm Tue 24th Oct, Christopher M.

ANONYMOUS wrote That's good, because it doesn't work. Probably in about 10 day's time.


SVG not supported 6:43pm Tue 24th Oct, Christopher M.

ANONYMOUS wrote YES. I believe that that is exactly what I said in my previous reply in this thread.


SVG not supported 6:39pm Tue 24th Oct, Christopher M.

ANONYMOUS wrote The Exams' information page - https teaching.csse.uwa.edu.au units CITS2002 examinations.php - provides links copies of the past 3 years of exam papers. Going back much beyond that gets you 'in trouble' as the unit's materials chan...


SVG not supported
notes  (both)
11:28am Tue 24th Oct, Christopher M.

Anything; please see https teaching.csse.uwa.edu.au units CITS2002 examinations.php


SVG not supported 11:18am Tue 24th Oct, Christopher M.

Hi, not today, as I'm mostly in staff workshops, but on Thursday - https secure.csse.uwa.edu.au run help2002?p np opt B1057


SVG not supported 11:17am Tue 24th Oct, Christopher M.

There'll be an extra Catch-Up session on Thursday 26th, from 1pm-3pm, in CSSE Rm 2.07 Please bring along your questions about this year's exam, or about questions from the past 3 year's papers, either programming or non-programming questions. Preferen...


SVG not supported 6:55am Tue 24th Oct, Christopher M.

If concerned about the automated marking procedure for the 1st project, you may download the marking script and its test files. Download the Zip archive from https teaching.csse.uwa.edu.au units CITS2002 projects markme1.zip - expand the Zip archiv...


SVG not supported 6:16am Tue 24th Oct, Christopher M.

Found this, and answered here https secure.csse.uwa.edu.au run help2002?p np opt B1050


SVG not supported 6:14am Tue 24th Oct, Christopher M.

ANONYMOUS wrote Thanks for that feedback. We've tried this year to give students greater opportunity to ask more questions about the 'theory' topics, and to not solely focus on programming-based material, by holding our weekly 2 hour Catch Up sessions...


SVG not supported 6:03am Tue 24th Oct, Christopher M.

ANONYMOUS wrote Given that certain regions of memory contain very frequently required instructions or data, does it make sense that hardware and an operating-system would attempt to automatically, or 'cleverly', ensure that those frequently accessed...


SVG not supported 5:48am Tue 24th Oct, Christopher M.

ANONYMOUS wrote Hey. Yes, exam questions on those more recent topics could involve you writing some coded statements, but will not ask you to write whole (short) programs or functions as the programming-focussed questions do. Agreed, we haven't had ...


SVG not supported 5:35am Tue 24th Oct, Christopher M.

Hopefully this will help https secure.csse.uwa.edu.au run help2002?p np opt B1048


SVG not supported 5:34am Tue 24th Oct, Christopher M.

ANONYMOUS wrote Each of the non-programming questions are different, no single rubric covers them all, and there's no single correct answer or approach to answering a question. Each is a short-answer question which, not surprisingly, receives the high...


SVG not supported 4:44am Tue 24th Oct, Christopher M.

ANONYMOUS wrote About a third of the automated tests are dependent on the -r option working as required.


SVG not supported 4:43am Tue 24th Oct, Christopher M.

ANONYMOUS wrote My recommendation is that you submit a correctly working project if you're aware of a significant problem.


SVG not supported 4:38am Tue 24th Oct, Christopher M.

ANONYMOUS wrote For this exam (format), you're welcome to write your functions (there will be at most 2 or 3 per question) in any order you choose. Start each on a different page of your exam booklet if you wish. I don't mind if you use pencil, but tak...


SVG not supported 4:28am Tue 24th Oct, Christopher M.

ANONYMOUS wrote I don't believe that you can, other than by repeating what execv() does from within your own code. As you've suggested, using the stat permissions only check if a permission bit is set - you could, for example, set execute permi...


SVG not supported 4:23am Tue 24th Oct, Christopher M.

ANONYMOUS wrote (Sometimes I wonder if 10 of marks were awarded just for following directions....)


SVG not supported 4:23am Tue 24th Oct, Christopher M.

Hello Henry, While your mysync.c file may not export an API (which make sense, as it will only call out to other files), there is the convention that, as the whole project is named mysync, that we have a common header file named mysync.h to provide co...


SVG not supported 4:17am Tue 24th Oct, Christopher M.

ANONYMOUS wrote It won't be a problem; we (have to) search for student numbers in all source-code files.


SVG not supported 7:49am Sun 22nd Oct, Christopher M.

ANONYMOUS wrote You're overthinking this. Yoru project will be tested with standard directories and files, with standard names, some identified with absolute pathnames, others with relative pathnames. There's no trickery. Yes, devote time to studying f...


SVG not supported 7:44am Sun 22nd Oct, Christopher M.

My motivations for not releasing sample exam solutions are (many years ago, when I did release some solutions) students became 'obsessed' with those solutions, to the point of rote learning those answers, in the hope that those questions would be rep...


SVG not supported 7:28am Sun 22nd Oct, Christopher M.

ANONYMOUS wrote The intention is that each test is independent of the others, so you won't be penalised multiple times for the same mistake, but some tests do involve 2 or 3 options, in combination. All students' projects will be tested using the same...


SVG not supported 7:22am Sun 22nd Oct, Christopher M.

ANONYMOUS wrote You earn marks for providing the correct header files for the problem. It's reasonable that you may provide one or two extra ones that are not required, but if you simply provide a long list of header files, most of which are not requ...


SVG not supported 7:20am Sun 22nd Oct, Christopher M.

I have sent you a reply via email.


SVG not supported 7:19am Sun 22nd Oct, Christopher M.

ANONYMOUS wrote It is your responsibility to submit what you want to be marked, either by the deadline or after the deadline but receiving the same campus-wide penalties that apply in all units. Your most recent submission is the one that is marked.


 UWA week 42 (2nd semester, week 12) ↓
SVG not supported 5:22pm Fri 20th Oct, Christopher M.

ANONYMOUS wrote A few lines not compiling means the whole project doesn't build. You should make the decision - but it's not the markers' job to correct your project.


SVG not supported 4:45pm Fri 20th Oct, Christopher M.

ANONYMOUS wrote It's due 5PM today - so penalty will be 5 until 5PM Saturday.


SVG not supported 4:31pm Fri 20th Oct, Christopher M.

I recommend just keeping it simple; after you've finished the project, learn all the fancy 'tricks' for any future projects to undertake.


SVG not supported 1:50pm Fri 20th Oct, Christopher M.

ANONYMOUS wrote As discussed here https secure.csse.uwa.edu.au run help2002?p np opt B969 it could be for any number of reasons. The problem has likely occurred well before calling fopen() but then fopen() just triggers the detection and...


SVG not supported 1:46pm Fri 20th Oct, Christopher M.

I strongly suggest that you use -std c11 -Wall -Werror What's your motivation for using -MMD ? Are you trying to build a self-generating Makefile?


SVG not supported 11:41am Fri 20th Oct, Christopher M.

(Most) marks for the 1st project are now available. Congratulations to the 15 students receiving 50 50, and to the 38 students receiving 46 50 or higher. 274 students have a passing mark, so far. UPDATE, Sat 21st - average mark after some remarks cor...


SVG not supported 11:34am Fri 20th Oct, Christopher M.

ANONYMOUS wrote The mysync command will not be invoked, by the shell, until you close that single-quote.


SVG not supported 11:33am Fri 20th Oct, Christopher M.

Your understanding is incorrect. We are synchronising files and, if a file requires copying from one (sub)directory to another, then the full path to the new copy must (first) exist, or be created.


SVG not supported 10:48am Fri 20th Oct, Christopher M.

Only one single-quote on the above line ??


SVG not supported 9:49am Fri 20th Oct, Christopher M.

ANONYMOUS wrote Yes, as here https secure.csse.uwa.edu.au run help2002?p np opt B989 year 2023


SVG not supported 9:48am Fri 20th Oct, Christopher M.

ANONYMOUS wrote There's no required format for any of the verbose output, and it will be ignored during the automatic marking, but the project sheet does say "The -v option requests that mysync be more verbose in its output, reporting its actions ...


SVG not supported 9:42am Fri 20th Oct, Christopher M.

ANONYMOUS wrote Yes, you may keep (re)submitting right up to the '7-day-limit' when a standard 35 penalty kicks in. cssubmit only retains one copy of each named file, the most recent one, and that's the one that gets marked.


SVG not supported 5:41am Fri 20th Oct, Christopher M.

ANONYMOUS wrote Your project should be able to handle both absolute and relative top-level directory names (I don't believe it's a "theoretical" matter, and am unsure how why you'd be treating them differently). I'm not sure what you mean by an incorr...


SVG not supported 6:10pm Thu 19th Oct, Christopher M.

(of course) the sample copies the file contents. Why do you think it doesn't?


SVG not supported 5:38pm Thu 19th Oct, Christopher M.

ANONYMOUS wrote What does the project sheet say about detecting and handling errors? Investigate the creat() system-call.


SVG not supported 4:17pm Thu 19th Oct, Christopher M.

ANONYMOUS wrote It's a good practice, but there is probably nothing that we can do if an error is detected. Keep in mind that the files might not be text source files, and so the notion of a 'line' may make no sense.


SVG not supported 4:15pm Thu 19th Oct, Christopher M.

Hello, I don't understand how the Subject line relates to your questions, but... ANONYMOUS wrote . mysync -r -a -i dir1 dir2 There is no wildcard, but dir1 is a valid pattern. Then ' .h' is being provided as a (valid) directory name. '0 ' is a pos...


SVG not supported 1:19pm Thu 19th Oct, Christopher M.

ANONYMOUS wrote Just because the web-based version always syncs (I think it was since someone requested that the 'visual' view be included).


SVG not supported 1:14pm Thu 19th Oct, Christopher M.

Coders For Causes (CFC) would like to share information about their summer projects. CFC is a student-run club focusing on building software and generating technical solutions for charities and not for profit organisations. Participating in the CFC pr...


SVG not supported 12:46pm Thu 19th Oct, Christopher M.

https lemire.me blog 2023 10 18 how-many-billions-of-transistors-in-your-iphone-processor


SVG not supported 12:36pm Thu 19th Oct, Christopher M.

ANONYMOUS wrote Firstly, we have said that your project will not be tested with cases where any particular filename appears in below the same location of multiple top-level directories, and with identical modification times. That case would certainl...


SVG not supported 12:31pm Thu 19th Oct, Christopher M.

Hello Ashkaan, It's almost impossible to diagnose the problem from your description, alone. Each process has a single heap, and that heap is shared by all (many) functions used in your program. We're aware of malloc realloc .... that directly manage ou...


SVG not supported 6:07am Thu 19th Oct, Christopher M.

University IT will be performing critical maintenance between 5.30am and 6.30am on Friday 20 October. Between 5.30am and 6am all network and internet (wired and Wi-Fi) connections both on campus and remote will be unavailable. Then, from 6am to 6.30am...


SVG not supported 5:58am Thu 19th Oct, Christopher M.

ANONYMOUS wrote No. The directories and files that your project creates updates are the items marked in this project.


SVG not supported 7:29pm Wed 18th Oct, Christopher M.

ANONYMOUS wrote Using the casual definition of a 'hidden file' as one whose name begins with a '.', then patterns will only match hidden files, if the patterns also begin with a '.' Try ls -l . in your home directory. Also, (the)read the very fi...


SVG not supported 7:23pm Wed 18th Oct, Christopher M.

I wouldn't describe it that way. With the -n option, files are not actually copied, but -n requests the very same (debugging) output as -v.


SVG not supported 7:22pm Wed 18th Oct, Christopher M.

ANONYMOUS wrote As WSL is running a standard Linux distribution, I doubt that that is the culprit.


SVG not supported 7:21pm Wed 18th Oct, Christopher M.

ANONYMOUS wrote As discussed here - https secure.csse.uwa.edu.au run help2002?p np opt U937 you shouldn't (need) to use chmod() , but are welcome to if necessary.


SVG not supported 7:18pm Wed 18th Oct, Christopher M.

ANONYMOUS wrote No; your project may be tested with an absolute pathname - they are standard ways of naming directories (and files), and all(?) utilities handle them. Don't forget that your project will be tested on Linux, and not Windows.


SVG not supported 1:22pm Wed 18th Oct, Christopher M.

ANONYMOUS wrote And in the CSSE labs.


SVG not supported 1:21pm Wed 18th Oct, Christopher M.

ANONYMOUS wrote It does not say "only". You can use open() or fopen() to open any type of file, and then use the appropriate read write close functions.


SVG not supported 1:19pm Wed 18th Oct, Christopher M.

ANONYMOUS wrote A "usage" message is printed when a program is invoked incorrectly. It is not printed if the running program later detects an error as it is executing.


SVG not supported 1:15pm Wed 18th Oct, Christopher M.

ANONYMOUS wrote Which is consistent with what the project sheet has always said. There's no real need to free memeory on termination - https secure.csse.uwa.edu.au run help2002?p np opt U711 nor to close files or directories unless you need to flush ...


SVG not supported 1:02pm Wed 18th Oct, Christopher M.

ANONYMOUS wrote Start here https secure.csse.uwa.edu.au run help2002?p np opt U838 hl open 20fopen The rest of your question would be a good exam question -)


SVG not supported 12:02pm Wed 18th Oct, Christopher M.

Your choice.


SVG not supported 11:59am Wed 18th Oct, Christopher M.

You should use 0666 and 0777 when creating new items. Those values will then be modified by the umask of the process creating the items, which may be a person's shell invoking the command from the command-line or, in our case, a web-server invoking t...


SVG not supported 11:43am Wed 18th Oct, Christopher M.

ANONYMOUS wrote Marking is not about losing marks, there is no 'negative marking', it's about awarding marks for (in our projects) things that work correctly, as required. I appreciate that you've described your situation, but I can't really see a r...


SVG not supported 5:52am Wed 18th Oct, Christopher M.

ANONYMOUS wrote There certainly are more complicated implementations of hashtables that 'grow' as the number of their elements pass some threshold. Extending the initial vector of pointers to the lists is the easy part, but then you also have to deter...


SVG not supported 5:37am Wed 18th Oct, Christopher M.

You and your friend may have different values of umask set in your shells. https www.geeksforgeeks.org umask-command-in-linux-with-examples The umask is used to modify the initial permissions of any newly created file or directory, to set i...


SVG not supported 5:25am Wed 18th Oct, Christopher M.

ANONYMOUS wrote Hi, thanks for reporting the problem, and sorry that I didn't initially read your post clearly enough. I believe that the bug is now fixed. Good luck,


SVG not supported 7:21pm Tue 17th Oct, Christopher M.

ANONYMOUS wrote Yes, if the function requires things declared in header files, you'll need to include the header files. If you didn't attend, please watch today's lecture recording.


SVG not supported 7:20pm Tue 17th Oct, Christopher M.

ANONYMOUS wrote The file hello2.py, in each directory, has the same modification time. Thus, they are both the 'newest' copy of hello2.py


SVG not supported 7:18pm Tue 17th Oct, Christopher M.

ANONYMOUS wrote When using the web-interface, you should not place quotes (single or double) around the patterns.


SVG not supported 4:17pm Tue 17th Oct, Christopher M.

Not necessary and, depending on how you've stored your file and location information, may not be possible.


SVG not supported 1:44pm Tue 17th Oct, Christopher M.

ANONYMOUS wrote You'll dislike this response, but where have you looked?


SVG not supported 1:43pm Tue 17th Oct, Christopher M.

ANONYMOUS wrote I have a great Algorithms textbook named Compared to What? - https www.amazon.com.au Compared-What-Introduction-Analysis-Algorithms dp 071678243X r Is 7579 bytes a lot? Compared to what? When any process terminates the operating syste...


SVG not supported 1:36pm Tue 17th Oct, Christopher M.

ANONYMOUS wrote If the project description only mentions files for -p, then that's what's required. You can test it using the sample solution.


SVG not supported 1:35pm Tue 17th Oct, Christopher M.

ANONYMOUS wrote They have different roles. The more familiar fprintf() allows you to print anything you want. In contrast, perror() prints system-level error messages in a standard and consistent format. But it can only do that if the curre...


SVG not supported 1:09pm Tue 17th Oct, Christopher M.

What does the project's sheet say about error handling?


SVG not supported 11:25am Tue 17th Oct, Christopher M.

ANONYMOUS wrote This is a simple case that you can check with the sample solution. Does the sample solution give the result that you anticipated?


SVG not supported 8:09am Tue 17th Oct, Christopher M.

Please also see https secure.csse.uwa.edu.au run help2002?p np opt U897


SVG not supported 7:50am Tue 17th Oct, Christopher M.

See also https secure.csse.uwa.edu.au run help2002?p np opt U897


SVG not supported 6:11am Tue 17th Oct, Christopher M.

ANONYMOUS wrote I'm unsure why (it's very notable that) this case has generated as much discussion confusion as it has. Yes, it's a valid reasonable case that could be assessed. Here is a shellscript of commands to build a set of test directories and...


SVG not supported 5:58am Tue 17th Oct, Christopher M.

ANONYMOUS wrote Hello, As was announced in yesterday's lecture and in a lecture last week (are you attending lectures?), we don t know the exact date, but I'm hopeful of tomorrow (Wed 18th). One of our project markers, who was marking the projects of...


SVG not supported 3:28pm Mon 16th Oct, Christopher M.

ANONYMOUS wrote It may be that you're zipping up things by providing their full absolute pathnames, and those pathnames cannot (will not) be created on the server. It would be quite a security nightmare if you could indicate where you'd like your fi...


SVG not supported 3:22pm Mon 16th Oct, Christopher M.

ANONYMOUS wrote Whether this approach is described as working silently, stealthily, or convoluted, you'd surely have to agree that it's inelegant? I can't think of many (any?) tasks in computing where we perform an activity, and then undo it later o...


SVG not supported 3:00pm Mon 16th Oct, Christopher M.

ANONYMOUS wrote I'm afraid that, from your description, I don't know what the error is.


SVG not supported 2:59pm Mon 16th Oct, Christopher M.

ANONYMOUS wrote It really looks like there's an error in your Makefile, though we can't tell what it is. As marks will be awarded for an error-free Makefile and its ability to build your project, you should definitely get rid of those errors.


SVG not supported 1:45pm Mon 16th Oct, Christopher M.

ANONYMOUS wrote Sorry, I don't understand this. Are you uploading your dirA.zip and dirB.zip files?


SVG not supported 1:42pm Mon 16th Oct, Christopher M.

ANONYMOUS wrote Are you uploading 2 Zip files, as the webpage requires?


SVG not supported 1:35pm Mon 16th Oct, Christopher M.

That's correct - won't be tested, as there's no definition of what is the 'most recent' file.


SVG not supported 1:33pm Mon 16th Oct, Christopher M.

At this morning's lecture I was surprised that so few students had any knowledge of the changes occurring within computing labs, across campus, from 1st semester 2024. I have just checked, and this information was sent to all enrolled students, and po...


SVG not supported 12:12pm Mon 16th Oct, Christopher M.

ANONYMOUS wrote That's correct - if -n is requested, no actual synchronisation is performed and, thus, there are no (new updated) files requiring their modification times changed. That's correct, if the same command is run twice (with -p both times), ...


SVG not supported 4:44am Mon 16th Oct, Christopher M.

ANONYMOUS wrote Not via the current web-interface to the sample, but you can when the sample solution is released a few days before the final exam.


SVG not supported 4:42am Mon 16th Oct, Christopher M.

ANONYMOUS wrote (Again) we are synchronising files, and not directories.


SVG not supported 4:41am Mon 16th Oct, Christopher M.

ANONYMOUS wrote That is an unusual approach. By default, make looks for a file named makefile or then Makefile in the current directory. The name Makefile is preferred because it appears near the top of an alphabetical listing ...


SVG not supported 4:37am Mon 16th Oct, Christopher M.

ANONYMOUS wrote (Politely) I have run out of ways to paraphrase an answer to this same question that keeps being asked. - the project requires you to synchronise files. - the project does not require you to synchronise empty directories. - the project d...


SVG not supported 4:31am Mon 16th Oct, Christopher M.

ANONYMOUS wrote Your program will be tested on a contemporary Linux distribution, such as the Ubuntu distribution in the CSSE labs. I suggest that you try it on one of those machines. Just seconds. Someone asked previously about the st mtim (without the...


SVG not supported 4:27am Mon 16th Oct, Christopher M.

ANONYMOUS wrote There's nothing special about the file .DS Store - https en.wikipedia.org wiki .DS Store text In 20the 20Apple 20macOS 20operating,Services 20Store 2C 20reflecting 20its 20purpose Your code should not be explicitly looking for i...


SVG not supported 4:25am Mon 16th Oct, Christopher M.

ANONYMOUS wrote


SVG not supported 6:03am Sun 15th Oct, Christopher M.

ANONYMOUS wrote the answer is the same to this one https secure.csse.uwa.edu.au run help2002?p np opt B858 I'm unsure what webpage you've read, or if you're misunderstood it, but try this command touch .hidden ; ls -ld.hidden ; sleep 65 ; touc...


SVG not supported 5:59am Sun 15th Oct, Christopher M.

ANONYMOUS wrote I've (just) posted of how the sample solution handles this https secure.csse.uwa.edu.au run help2002?p np opt B855 Yes, unfortunately, because the sample solution requires you to upload the distinct top-level directories, it current...


SVG not supported 5:52am Sun 15th Oct, Christopher M.

ANONYMOUS wrote I strongly suggest that you review what those '.' and '..' entries are (Lecture 15). Reviewing what those '.' and '..' entries are will answer your question. Running the sample solution shows the correct 'treatment' of those entries.


SVG not supported 5:44am Sun 15th Oct, Christopher M.

ANONYMOUS wrote This has (just) been answered here - https secure.csse.uwa.edu.au run help2002?p np opt B856 year 2023 and has been stated multiple times on this forum. How (any) solution works is not a property of the chosen data-structure. The cont...


SVG not supported 5:39am Sun 15th Oct, Christopher M.

ANONYMOUS wrote The sample solution is correct in that it syncs copies files (term them regular files if it helps) and does not sync directories, empty or otherwise. If you are creating syncing empty directories it will be a problem in marking as the ...


SVG not supported 5:35am Sun 15th Oct, Christopher M.

ANONYMOUS wrote I can see that the outcomes should be the same - you make the file copies, and then extend a dynamic data-structure to remember what has been performed. In contrast, the sample solution builds its dynamic data-structure to define wha...


 UWA week 41 (2nd semester, week 11) ↓
SVG not supported 4:54am Fri 13th Oct, Christopher M.

ANONYMOUS wrote Hello - you posted something at "6 54pm Thu 12th Oct", and then sent me a follow-up at "11 12pm Thu 12th Oct"? (I receive a copy of every post via email, and can also see them via the 'NEW" menu item, above) With your approach, I'm wond...


SVG not supported 11:24am Thu 12th Oct, Christopher M.

ANONYMOUS wrote You will be able to answer your own question by running the sample solution.


SVG not supported 9:33am Thu 12th Oct, Christopher M.

ANONYMOUS wrote It may not be exactly what you wanted, but the sample now displays 'before and after' directories from the tree utility.


SVG not supported 5:19am Thu 12th Oct, Christopher M.

ANONYMOUS wrote Thanks for the suggestion. The output currently produced by the sample solution is printed as the program executes, reporting its actions as a hint (of one way) that the project can be constructed, and doesn't perform any additional pr...


SVG not supported
fopen, fread etc 👍x2  (all 3)
4:06am Thu 12th Oct, Christopher M.

ANONYMOUS wrote Yes, you may use those (or any other) C11 functions that you choose. The list of functions on the project page states - "It is anticipated that a successful project will use..." - it's just providing a big hint, but not being restric...


SVG not supported 2:03pm Wed 11th Oct, Christopher M.

Wondering if you're finding the sample solution helpful? Does it need to report any more information to be clearer about what it's doing?


SVG not supported 1:38pm Wed 11th Oct, Christopher M.

ANONYMOUS wrote Hello, Was answered here https secure.csse.uwa.edu.au run help2002?p np opt B677 hl same 20modification (it won't happen in testing).


SVG not supported 5:22am Wed 11th Oct, Christopher M.

ANONYMOUS wrote There are many different ways to implement hashtables, and all sorts of information may be used as their keys, and stored in them. The example code provided in our workshop is just one example, but should be able to store all values le...


SVG not supported 3:35pm Tue 10th Oct, Christopher M.

I think it's corrected now. Thanks.


SVG not supported 3:29pm Tue 10th Oct, Christopher M.

ANONYMOUS wrote Thanks; I'll look at it later this evening.


SVG not supported 10:36am Tue 10th Oct, Christopher M.

ANONYMOUS wrote At the top of the unit's Schedule "All source code provided in lectures, laboratories, and workshops is released under the Creative Commons CC BY-NC-SA 4.0 license. CITS2002 students may use the materials in assessed work without attr...


SVG not supported 6:04am Tue 10th Oct, Christopher M.

There is now a web-based sample solution available at https secure.csse.uwa.edu.au run mysync-sample Hopefully this will allay some of the (surprising amount of) confusion about the command-line options and what should be synchronised. It's a little ...


SVG not supported 4:05am Tue 10th Oct, Christopher M.

ANONYMOUS wrote Marks will be awarded for your choice and implementation of data structures. Even if correct, the use of a single array of all information is not the best possible choice. Using a hashmap (hashtable, dictionary,....) is a better choice ...


SVG not supported 3:43am Tue 10th Oct, Christopher M.

ANONYMOUS wrote The project doesn't require you to detect locked files, and there's no required interactivity once the program is running. I don't believe that you can easily detect if another process has a file open (??)


SVG not supported 3:28am Tue 10th Oct, Christopher M.

ANONYMOUS wrote The directory names provided on the command-line are the top-level directories (their contents to be scanned...)


SVG not supported 3:24am Tue 10th Oct, Christopher M.

ANONYMOUS wrote The project description says "Filenames matching the indicated pattern..." Filenames are the names of files. Directory names are not filenames.


SVG not supported 3:23am Tue 10th Oct, Christopher M.

ANONYMOUS wrote The project description says "Eventually, all locations will hold identical copies of the same files."


SVG not supported 1:18pm Mon 9th Oct, Christopher M.

ANONYMOUS wrote Clearly it makes no sense to create infinitely long directory chains (no utilitiy program would correctly do that). It sounds like you're creating things before you determine whether you need to.


SVG not supported 1:15pm Mon 9th Oct, Christopher M.

We are just synchronising files. However, files can't existing 'by themselves' - they must be in a directory that, itself, is in other directories. So if you need to create the file dir2 a b c d e f g h filename.txt then you'll need to ensure that al...


SVG not supported 1:11pm Mon 9th Oct, Christopher M.

ANONYMOUS wrote We'll only be testing for the macthing modification time.


SVG not supported 1:10pm Mon 9th Oct, Christopher M.

ANONYMOUS wrote Not convinced that there's no support, and it would be good to hear from some WSL users. I found https devicetests.com accessing-usb-drive-wsl-ubuntu https devblogs.microsoft.com commandline connecting-usb-devices-to-wsl


SVG not supported 4:40am Sun 8th Oct, Christopher M.

ANONYMOUS wrote Yes. I do not have any other ways of paraphrasing this again.


SVG not supported 4:39am Sun 8th Oct, Christopher M.

Default protection mode (it is not a status). The default mode for files is 0666, not 755.


SVG not supported 4:33am Sun 8th Oct, Christopher M.

ANONYMOUS wrote If the second case was the required way of doing it, would thing2 be a pattern or a directory in this example . mysync -i thing1 thing2


SVG not supported 4:30am Sun 8th Oct, Christopher M.

We are only synching files, not directories. (I don't believe that testing for and synching empty directories would add a 'layer of complexity', maybe 20 lines??)


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported 4:46am Sat 7th Oct, Christopher M.

"Even though very few of the early players in technology still exist, we use their creations to this day. Bell Labs created the transistor and Unix , and Fairchild Semiconductor created the integrated circuit, but neither company is still around. So...


SVG not supported 4:37am Sat 7th Oct, Christopher M.

Sorry, but I'm not following your question. Without the -r option you do not investigate any (sub)directories - resulting in you only considering the files in the top-level directories provided on the command-line. (and you can't know that a dire...


SVG not supported 4:17am Sat 7th Oct, Christopher M.

ANONYMOUS wrote If a filename under consideration matches any of the -i options then it is ignored. If a filename under consideration matches any of the -o options then it is accepted. Using the -a option requests that all files, rega...


SVG not supported 4:12am Sat 7th Oct, Christopher M.

ANONYMOUS wrote The goal of the project is to ensure that two or more directories each have the latest copy of the same files. If you find a file that exists below one top-level directory, but not others, then it'll need copying to those other directo...


SVG not supported 4:08am Sat 7th Oct, Christopher M.

ANONYMOUS wrote That's a general statement that different shells will support slightly different syntaxes to offer filename expansion. The function glob2regex() provided for this project supports only a very basic subset of what shells broadly s...


SVG not supported 4:49am Fri 6th Oct, Christopher M.

ANONYMOUS wrote Just try it. You won't be able to make a recursive loop in your file-system by just making directories and copying files. But you may accidentally make an 'infinitely' long chain of directories. But you can always interrupt the executio...


SVG not supported 4:38am Fri 6th Oct, Christopher M.

ANONYMOUS wrote The project marking won't be measuring the time taken, a data-structure (or combination) that avoids But get it to work first, and then determine where your program may be spending a lot of time. A linked list provides about the worst c...


SVG not supported 4:05am Fri 6th Oct, Christopher M.

Hi Ethan, I've tried mixing up the order of the header files, but I can't replicate your problem. My system gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1 23.04) In the file usr include x86 64-linux-gnu bits struct stat.h around line 75, you should h...


SVG not supported 5:40pm Thu 5th Oct, Christopher M.

ANONYMOUS wrote Please read the project description - it describes exactly what -a is for, and has been discussed and clarified many times on this forum already.


SVG not supported 5:34pm Thu 5th Oct, Christopher M.

ANONYMOUS wrote You don't copy the subdirectory to the destination, but you may first need to make the subdirectory. NO, NO, NO. How many more times do I need to stay that -a has nothing to do with this?


SVG not supported 5:32pm Thu 5th Oct, Christopher M.

ANONYMOUS wrote As the project description states, we are matching filenames not pathnames . Your program will not receive the single, or double, quotation characters. Also see the difference between these two commands echo ' HOME' echo " HOME" ...


SVG not supported 5:12pm Thu 5th Oct, Christopher M.

ANONYMOUS wrote OK, sorry. The -a option has nothing to do with what you're attempting to do.


SVG not supported 5:06pm Thu 5th Oct, Christopher M.

ANONYMOUS wrote We are synchronising files , which may have any name. From the perspective of the directory entries, we are only considering (regular) files and (possibly) subdirectories. - By default, we do not consider directory entries with a lea...


SVG not supported 4:56pm Thu 5th Oct, Christopher M.

ANONYMOUS wrote You may choose any data-structures, or a combination of data-structures, that you wish. I really don't know what "two chunck of memories" means, but there's no need to explain.


SVG not supported 4:53pm Thu 5th Oct, Christopher M.

ANONYMOUS wrote I'm assuming that you meant "-r isnt used..." So, if not processing recursively, how why did you get 'down to' SubDirA in the first place? Keep recursing until you run out of subdirectories to descend into.


SVG not supported 4:49pm Thu 5th Oct, Christopher M.

Hello Ethan, Very strange that there's a difference (or that you're not seeing many other differences). Could you please let us know the order of the files you're includ-ing ? Are you manually defining any specific constants, perhaps involving X...


SVG not supported 4:41pm Thu 5th Oct, Christopher M.

ANONYMOUS wrote Please read the Clarifications.


SVG not supported 7:36am Thu 5th Oct, Christopher M.

ANONYMOUS wrote Success with this?


SVG not supported 6:08am Thu 5th Oct, Christopher M.

ANONYMOUS wrote Yes, use those 2 values as the defaults. No specific format required.


SVG not supported 5:49am Thu 5th Oct, Christopher M.

?? I believe that the reason for 2 such similar constants is their historic origins - MAXPATHLEN originally from the Unix world, and MAX PATH from the Windows world. I do most of my work on both Linux and macOS, ensuring that my code compiles with mini...


SVG not supported 2:50pm Wed 4th Oct, Christopher M.

Firstly, getopt() is not defined by the C standards (it's not a concern of the language), but is defined by POSIX standards (it's a concern of the portability of the OS interfaces). And because unistd.h is not a standard-C header file (https ...


SVG not supported 7:49am Wed 4th Oct, Christopher M.

The CS Honours (4th year) and Masters of Data Science (5th year) students will be presenting their research project seminars this Friday 6th. If you have been wondering about either Honours or the MDS, or just have an interest in what research stude...


SVG not supported 5:26am Wed 4th Oct, Christopher M.

"It's the 150th anniversary of the QWERTY keyboard, and Marcin Wichary has put together the kind of history and celebration this totemic object deserves. Shift Happens is a two-volume, 1,200-plus-page work with more than 1,300 photos, researched over...


SVG not supported 5:07am Wed 4th Oct, Christopher M.

See the first Clarification.


SVG not supported 5:06am Wed 4th Oct, Christopher M.

Hi Nicholas, You have a misunderstanding here. Requesting -n does not "ask" for anything (there's nothing interactive about the mysync program once it has started). Providing the -n option requests that everything occurs in the standard way, except that...


SVG not supported 6:52pm Tue 3rd Oct, Christopher M.

Hi Henry, Yes, legal, and getopt() will handle both forms for you.


SVG not supported 5:15pm Tue 3rd Oct, Christopher M.

ANONYMOUS wrote Yes, that is correct. The goal is to synchronise the files (in indicated directories), not to synchronise directories. But your storyline doesn't make sense - we have no way of knowing what dir1 and dir2 used to have, or how they cam...


SVG not supported 12:46pm Tue 3rd Oct, Christopher M.

As stated in the project description, anything that cannot be performed is an error, and as soon the first error is detected, your program should report the error and terminate. The system-calls will provaide all necessary support to detect report t...


SVG not supported 5:45am Tue 3rd Oct, Christopher M.

Please re-read the project description.


SVG not supported 5:42am Tue 3rd Oct, Christopher M.

ANONYMOUS wrote Spaces may occur in any names, directories or files. It's only the shell, not your C code that will consider a name with spaces as 2 arguments, so we need to use the syntax of the shell to keep the 'pieces' as one argument ' media U...


SVG not supported 5:29am Tue 3rd Oct, Christopher M.

ANONYMOUS wrote Your understanding is correct, a terminating process's memory is returned to the OS for other processes (existing and new) to use. So any allocated memory use in for long-term data structures need not be freed. However, as a general pra...


SVG not supported 1:06pm Mon 2nd Oct, Christopher M.

Yes. From the project description - "Eventually, all locations will hold identical copies of the same files."


SVG not supported 1:05pm Mon 2nd Oct, Christopher M.

ANONYMOUS wrote You may wish to check the common meaning of insinuating -) As with the mkdir situation, you should not write your own program (and you've already been given file-copying code in lectures).


SVG not supported 1:02pm Mon 2nd Oct, Christopher M.

Hello Hugo, Yes, you may assume that the file-patterns provided for testing will be valid one (checking those is not a focus of the project and, yes, we could write a better glob2regex() function, but...)


SVG not supported 12:55pm Mon 2nd Oct, Christopher M.

Nothing gets deleted in the project. We are syncing files, either from the top-level directories or sub-directories if using -r. We are not actually syncing directories, or their contents, but (as a side-effect) will need to create corresponding direct...


SVG not supported 12:47pm Mon 2nd Oct, Christopher M.

We can trivially call a command-line utility from within a C program by using for() and execl() . But the mkdir program does little more than call the mkdir() system-call, which we can do from within our own program. If the actio...


SVG not supported 12:42pm Mon 2nd Oct, Christopher M.

Yes, that's what the project specifies, so please have your project do that (and it'll likely assist the amrking). There's many ways that things could be done. The project is consistently requiring that the very first error found results in the progra...


SVG not supported 12:18pm Mon 2nd Oct, Christopher M.

ANONYMOUS wrote I'm unsure of the context of your question. Do you mean the permissions passed as an argument to the chmod system-call? You have a computer on which you typed your question. You cna use that as an experimental tool to write very ...


 UWA week 39 (2nd semester, week 9) ↓
SVG not supported
2nd project mkdir 👍x1  (all 4)
12:47pm Fri 29th Sep, Christopher M.

ANONYMOUS wrote There is a program (utility program) named mkdir , which you may not use. But there's also a system-call named mkdir() which you may use. The exact same is true for chmod and getopt .


SVG not supported 12:45pm Fri 29th Sep, Christopher M.

ANONYMOUS wrote No answer for the 2nd question. I started to write a small clarification for it, but then realised that there is no correct answer. For example, in determining which of two files we should copy (from) - we presume that 2 candidate fil...


SVG not supported 12:29pm Fri 29th Sep, Christopher M.

Yes, I understand what they are asking, but am running out of ways to paraphrase the same answer.


SVG not supported 5:33am Fri 29th Sep, Christopher M.

An interesting, older, SO discussion which is now 'obsoleted' by the inclusion of strdup() in C23 https stackoverflow.com questions 32944390 what-is-the-rationale-for-not-including-strdup-in-the-c-standard


SVG not supported 4:17am Fri 29th Sep, Christopher M.

Hmmm, I've just remembered the getconf program on both Linux and macOS. On my Ubuntu system, getconf ARG MAX reports 2097152, and on my shiny new macOS M2 it reports 1048576. But don't try to determine or use those values - dynamically alloc...


SVG not supported 4:14am Fri 29th Sep, Christopher M.

ANONYMOUS wrote Without -r we only consider the files (not directories) in each top-level directory provided on the command-line. With -r we consider all files and sub-directories in and below the top-level directories. With -n we don't have to print ...


SVG not supported 4:01am Fri 29th Sep, Christopher M.

Hi Hugo, I strongly suspect that you're asking for this information because you want to define fixed-sized arrays. However, that's the wrong approach for this project. Firstly, there are no guaranteed upper-bounds on these values (but one), and even tr...


SVG not supported 1:36pm Thu 28th Sep, Christopher M.

While -a and -r may be provided in the same command, as can -a and -R for ls , they are otherwise unrelated. Similarly, -a and -p (and many other combinations) are unrelated.


SVG not supported 11:49am Thu 28th Sep, Christopher M.

The -a option asks your program to 'pay attention to' all directory entries, including those that begin with a '.' It is analogous to running ls -a . The -r option asks your program to recursively process any (sub)directories it finds. It is analo...


SVG not supported 10:03am Thu 28th Sep, Christopher M.

ANONYMOUS wrote There's no problem there - '-r' and '-n' are valid file patterns.


SVG not supported 6:17pm Wed 27th Sep, Christopher M.

ANONYMOUS wrote As you'll see in Monday's lecture, or if you read ahead, the getopt() function detects such problems, but it'll be up to your code to report any errors.


SVG not supported 3:36pm Wed 27th Sep, Christopher M.

ANONYMOUS wrote The function strdup() has never been defined in a C standard, until its appearance in the new C23 standard (though why release it on 1st April ?) https www.open-std.org jtc1 sc22 wg14 www docs n3096.pdf But strdup() has ...


SVG not supported 3:16pm Wed 27th Sep, Christopher M.

The file dirA a b c thing1 will be copied to dirB a b c thing1 if - dirB a b c thing1 does not exist, or - dirA a b c thing1 is newer than dirB a b c thing1 If a file is renamed, we have no record of what its original name was, and the contents of...


SVG not supported 5:39am Wed 27th Sep, Christopher M.

Details of the 2nd project are available from https teaching.csse.uwa.edu.au units CITS2002 projects project2.php Please post requests for clarification about any aspect of the project to help2002 so that all students may remain equally informed. S...


SVG not supported 10:39am Tue 26th Sep, Christopher M.

ANONYMOUS wrote Firstly (as we're discussing C), we speak of functions, not methods. Header files should contain globally-required preprocessor tokens and macros, and declarations of functions and variables. These simply inform the files that in...


SVG not supported 5:14am Sun 24th Sep, Christopher M.

You may find a copy of the 1st project's sample solution from https teaching.csse.uwa.edu.au units CITS2002 projects myscheduler-solution.c Please review the sample; it's written with (only) arrays and structures, and (as promised) does not employ ...


SVG not supported 4:25am Sun 24th Sep, Christopher M.

ANONYMOUS wrote Hello, Our 1st project was originally due 5pm Fri 15th Sept, and submissions closed 7 days later, at 5pm 22nd Sept, to account for all students with approved extensions. Did you attempt to submit your project after that Friday deadline...


SVG not supported 4:09am Sun 24th Sep, Christopher M.

"Where do UNIX manpages come from? Who introduced the section-based layout of NAME, SYNOPSIS, and so on? And for manpage authors where were those economical two- and three-letter instructions developed?" https manpages.bsd.lv history.html


SVG not supported 4:05am Sun 24th Sep, Christopher M.

Fixed; thanks for reporting it.


 UWA week 38 (2nd semester, week 8) ↓
SVG not supported 5:00am Fri 22nd Sep, Christopher M.

Why ? Why not x, or X ? https langdev.stackexchange.com questions 2935 why-do-programming-languages-use-the-asterisk-for-multiplication


SVG not supported 3:30am Wed 20th Sep, Christopher M.

"On September 27, 1983, a computer scientist named Richard Stallman announced the plan to develop a free software Unix-like operating system called GNU, for "GNU's not Unix." GNU is the only operating system developed specifically for the sake of use...


SVG not supported 5:08pm Tue 19th Sep, Christopher M.

ANONYMOUS wrote As the announcement says - "The final lecture, on Tues 17th October, will discuss how the exams are marked, and look at questions from last year's final examination." so, yes, we'll be looking at how the marking is done. There is no ...


SVG not supported 3:49am Mon 18th Sep, Christopher M.

Details about our final exam https teaching.csse.uwa.edu.au units CITS2002 examinations.php Please email me with any questions you have about its format, etc. The final lecture, on Tues 17th October, will discuss how the exams are marked, and look a...


SVG not supported 3:35am Mon 18th Sep, Christopher M.

Up until the end of Sunday 17th, we have 229 project submissions, 122 of them from teams of 2. 25 submissions required some minor changes to get them to compile correctly (suggesting that they were not previously compiled with the required options t...


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported 2:48pm Fri 15th Sep, Christopher M.

There is no rounding performed in the sample solution. All times are in integers and the final calculation of the utilization is performed in integers 100 total time on CPU total time;


SVG not supported 2:21pm Fri 15th Sep, Christopher M.

ANONYMOUS wrote Asked and answered (somewhere) previously. The process's sleep time occurs simultaneously with the transition time (RUNNING- SLEEP), so by the tiem the transition has occured, the request to sleep for 10usecs has been satisfied.


SVG not supported 9:09am Fri 15th Sep, Christopher M.

When submitting your 1st project, please ensure that - you've had a final read through the Clarifications - you've taken heed of the 'big hints' in the manual-marking section of the Rubric - your single C11 source-code file is named mysched...


SVG not supported 5:05pm Thu 14th Sep, Christopher M.

ANONYMOUS wrote As we are not striving for any efficiency, highly readable code is greatly preferred over long sequences of code that, often, are longer than the screen you're reading from. For example, The Clarifications define the order of schedul...


SVG not supported 4:55pm Thu 14th Sep, Christopher M.

Not sure what you mean by 'throw an error', but it's the output itself, its values, that are important, not the way that they were produced.


SVG not supported 4:54pm Thu 14th Sep, Christopher M.

ANONYMOUS wrote Depends on your implementation - you may increment advance the time by any amount, though just be careful not to 'miss' any events if you advance it along way into the future. If you ever find a need for time to go backwards, it stro...


SVG not supported 2:09pm Thu 14th Sep, Christopher M.

ANONYMOUS wrote Please see the Clarifications page.


SVG not supported 11:58am Thu 14th Sep, Christopher M.

A search of the forum finds https secure.csse.uwa.edu.au run help2002?p np opt B554


SVG not supported 9:21am Thu 14th Sep, Christopher M.

ANONYMOUS wrote The first line of the original screenshot was 00 0 0 0 R B O I G a e e 3 1 9 1 , w t i e u n u with a TQ of 5usec.


SVG not supported 5:23am Thu 14th Sep, Christopher M.

ANONYMOUS wrote Please see the last part of my reply, above.


SVG not supported 5:23am Thu 14th Sep, Christopher M.

ANONYMOUS wrote I'm pretty sure that this has been discussed previously, but I can't find it. The 'belief' is that '246 idle' should not be reported, but it happens because the final reporting debugging code at the end of each microsecond just prints...


SVG not supported 4:12am Thu 14th Sep, Christopher M.

https retr0.id stuff 2038


SVG not supported 4:02am Thu 14th Sep, Christopher M.

ANONYMOUS wrote After the process has spent 5usecs on the CPU performing some computation, its time-quantum expires and it's removed from the CPU. It does not "look into the future" to see what system-call is coming next, and then perform it if it hap...


SVG not supported 3:44am Thu 14th Sep, Christopher M.

ANONYMOUS wrote This project does not require a multi-threaded solution, so I'm afraid I can't see the purpose of any worker threads (unless you're meaning something other than the traditional meaning of worker threads??)


SVG not supported 3:42am Thu 14th Sep, Christopher M.

ANONYMOUS wrote I don't understand what you mean "...in a for loop". You'll only ever be creating one new process at any one time, so I'm unsure what role a loop has. ?? Only the single process running on the CPU can create a new process, by calling ...


SVG not supported 3:39am Thu 14th Sep, Christopher M.

ANONYMOUS wrote I'm not sure what you mean by 'my program will be overwhelmed'. All output will be ignored except the last line, so it doesn't matter how much there is. When the CPU is idle, at time T, is awakens all sleeping processes that should wa...


SVG not supported 5:00am Wed 13th Sep, Christopher M.

ANONYMOUS wrote Yes, that's the correct interpretation, and is intended to use as the maximum size of arrays and queues. In hindsight it should have been named MAX CURRENTLY LIVING PROCESSES, or something( ), as, of course, only one process can only e...


SVG not supported 4:55am Wed 13th Sep, Christopher M.

ANONYMOUS wrote No. You're either overthinking things, or have some misunderstandings. If a process is in the middle of writing something (actually, the device that the process requested to write something is writing), the process is not on the CP...


SVG not supported 4:49am Wed 13th Sep, Christopher M.

ANONYMOUS wrote Unsure what you mean. In the attached image the process requests to sleep for 5 usecs, the whole transition takes 10usecs, and so the process's sleeping request occurs during the transition. Correct.


SVG not supported 4:44am Wed 13th Sep, Christopher M.

ANONYMOUS wrote Whenever a process moved from READY- RUNNING it gets a new timequantum. In your 1st example, this is reported when the process's transition is complete, and the process is now able to (continue) executing. In your 2nd example, the proce...


SVG not supported 7:46pm Tue 12th Sep, Christopher M.

ANONYMOUS wrote (from the perspective of the process) if a process wishes to sleep for 15usec, then it wishes to stop sleeping 15usec into the future. It doesn't care what happens when it is sleeping. So the actual time sleeping, can include (overl...


SVG not supported 4:03pm Tue 12th Sep, Christopher M.

ANONYMOUS wrote Ummm, yeah. Please search the forum for significant words like ceil .


SVG not supported 3:43pm Tue 12th Sep, Christopher M.

ANONYMOUS wrote Firstly, a data-bus is a physical thing , it's not a verb, or an event, or an action, and in our simple system there's only one of them which connects the CPU, devices, and RAM together. Only one device can perform a data-transfer a...


SVG not supported 7:23pm Mon 11th Sep, Christopher M.

"... claims the UNIX OS was written in only 13K lines of code. Which seems a remarkably low number. Is it true, and if so how did they manage it? Seems completely antithetical to the monolithic monstrosities we know operating systems to be today." ...


SVG not supported 1:10pm Mon 11th Sep, Christopher M.

ANONYMOUS wrote Sorry, I can't reply as fast as you can cut-and-paste the same question. The ceil() function is in the standard C maths library, which is why you'll need the -lm linker option on Linux. Yes, you may use it. On macOS, Apple h...


SVG not supported 12:58pm Mon 11th Sep, Christopher M.

ANONYMOUS wrote If the true time taken is 66.66666, then it will not be finished by 66.0 but will be finished by 67.0 We can't 'do the next thing' until the I O has finished.


SVG not supported 12:55pm Mon 11th Sep, Christopher M.

ANONYMOUS wrote Same answer as this one https secure.csse.uwa.edu.au run help2002?p np opt B550


SVG not supported 12:53pm Mon 11th Sep, Christopher M.

ANONYMOUS wrote Yes, that's correct. Those time values are not consumed performed by the individual processes, but by the OS or a device. So they do not add to the processes' time on the CPU, and thus have nothing to do with the timequantum .


SVG not supported 5:47pm Sun 10th Sep, Christopher M.

Hi Hugo, It's safe to assume that all sysconfig files will define timequantum (you may be overthinking things but, in this and similar cases, if the better 'solution' is only a couple of lines, I'd provide the better solution, even if not require...


SVG not supported 7:03am Sun 10th Sep, Christopher M.

ANONYMOUS wrote There's no extra usec to add, as has been discussed and resolved in a few threads here, already. Please read through those. Following the scheduling order listed in the Clarifications, everything happens consistently in that order.


SVG not supported 6:59am Sun 10th Sep, Christopher M.

Hello Leon, I've now read and replied to your email. Sorry for the slow reply, but it's been the teaching break and I rarely work Saturdays, and people just need to get away from computers occasionally.


SVG not supported 5:32am Sun 10th Sep, Christopher M.

ANONYMOUS wrote Allowed? certainly, and 'essential'. Asked and answered previously here https secure.csse.uwa.edu.au run help2002?p np opt U213 Also, check the marking rubric https teaching.csse.uwa.edu.au units CITS2002 projects project1-rubric....


SVG not supported 5:28am Sun 10th Sep, Christopher M.

ANONYMOUS wrote The time-quantum doesn't affect any system-call. After a process makes any system-call the process is removed from the CPU. If that process exits, obviously it won't get back to the CPU. Otherwise, every process is given a new 'full' t...


SVG not supported 5:24am Sun 10th Sep, Christopher M.

ANONYMOUS wrote In Labs 2.03 and 2.05 you should first reboot the machine if it is running Windows. When given the menu to choose which OS to boot, choose Linux Ubuntu. There may be some setup difference between different computers in the same lab, so ...


SVG not supported 5:06am Sun 10th Sep, Christopher M.

It is not meaningful to say "This is practically 0 in the program". If something starts at, say, t 10 and takes 0.0006666, then you can't say it finishes at t 10. Moreover, if we're only using integers to represent time, then we have to say that it ha...


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported 12:14pm Fri 8th Sep, Christopher M.

ANONYMOUS wrote Why do you think that?


SVG not supported 12:13pm Fri 8th Sep, Christopher M.

ANONYMOUS wrote The starting time of that second spawn is invalid.


SVG not supported 12:12pm Fri 8th Sep, Christopher M.

ANONYMOUS wrote The times of your system-calls are invalid. exit must be called after 15usecs.


SVG not supported 6:10am Fri 8th Sep, Christopher M.

ANONYMOUS wrote It's only referring to Line 'A'. Cut-and-paste the code and compile it to see the error that a compiler will find.


SVG not supported 4:23am Fri 8th Sep, Christopher M.

Any debug printing statements will be ignored when your project is marked, so only you will know which debug printing is still valuable for your understanding of your code. Hope this helps,


SVG not supported 4:21am Fri 8th Sep, Christopher M.

Hello Luyang, If you run the sample solution in 'verbose mode', it will display (and hopefully explain) the times when each activity commences and finishes. Have you tried that?


SVG not supported 7:50pm Thu 7th Sep, Christopher M.

"...all 14 Toyota assembly plants in Japan faced an unexpected stoppage on August 29. It was all thanks to a breakdown of a key computer system responsible for ordering vehicle parts for Toyota factories. The cause of the problem? A full hard drive. ....


SVG not supported
1st project BLOCK 👍x1  (all 15)
7:11pm Thu 7th Sep, Christopher M.

The critical word in the above is 'waiting'. For a process to be waiting it must have called wait , not just spawn . I cannot see a contradiction.


SVG not supported 6:14pm Thu 7th Sep, Christopher M.

ANONYMOUS wrote Yes, this. Your project should be able to spawn an infinite number of processes( ), though at most MAX RUNNING PROCESSES will ever be running at any one time.


SVG not supported 6:11pm Thu 7th Sep, Christopher M.

ANONYMOUS wrote Stressful times - it happens Good luck,


SVG not supported 6:11pm Thu 7th Sep, Christopher M.

ANONYMOUS wrote Now linked 'everywhere' - https teaching.csse.uwa.edu.au units CITS2002 projects project1-rubric.php Please report anything in it that appears unexpected. (a marking rubric identifies what will be assessed; a marking sheet indicates t...


SVG not supported 6:09pm Thu 7th Sep, Christopher M.

Now linked 'everywhere' - https teaching.csse.uwa.edu.au units CITS2002 projects project1-rubric.php Please report anything in it that appears unexpected.


SVG not supported 5:38pm Thu 7th Sep, Christopher M.

ANONYMOUS wrote Could you please indicate which part of the description about the data-bus on the project sheet is causing confusion?


SVG not supported 5:30pm Thu 7th Sep, Christopher M.

ANONYMOUS wrote They are constants defining the characteristics limits of the computer system we're emulating. You will likely choose to use the values to define the maximum size of the data-structures that you define for your project. The project de...


SVG not supported 5:25pm Thu 7th Sep, Christopher M.

And just to make it clear for everyone - our project's requirement that certain lines begin with a TAB is not just there to make your life difficult. It is a very common feature of system configuration files that certain lines begin with a TAB, or ...


SVG not supported 5:22pm Thu 7th Sep, Christopher M.

ANONYMOUS wrote A process calling wait will be blocked until all of its child processes (that it has spawn ed) have terminated. The project sheet says "waits for all processes that it has spawned to terminate (at which time the process is...


SVG not supported 2:30pm Thu 7th Sep, Christopher M.

ANONYMOUS wrote (unsure of your chosen Subject line - system-calls don't have a 'length') What the sample solution does is the correct behaviour.


SVG not supported 2:28pm Thu 7th Sep, Christopher M.

ANONYMOUS wrote A few things - there is no state named 'DATABUS' - the data-bus is a 'wire', so a process cannot be 'in' it. - your process would move from RUNNING- BLOCKED. - a process waiting to acquire the data-bus does not have wait for the READY q...


SVG not supported 2:21pm Thu 7th Sep, Christopher M.

With 12 commands, your command-file is not a valid one. Your program (unfortunately) does not crash because there may be 'nothing important' in positions 10 and 11 , and your code just keeps adding to the array with only 10 elements.


SVG not supported 2:18pm Thu 7th Sep, Christopher M.

It is still not working because you still have not inserted a TAB character. You have inserted 8 spaces instead of the single TAB character. Run the command od -c command-file from the command-line and you'll see a sequence of spaces, but no TAB...


SVG not supported
1st project BLOCK 👍x1  (all 15)
2:11pm Thu 7th Sep, Christopher M.

There is no contradiction ( ). A process calling spawn is not blocked; it is placed back on the READY queue. A process calling wait is blocked if it has (running) child processes, otherwise it is placed back on a READY queue. A process does ...


SVG not supported 11:18am Thu 7th Sep, Christopher M.

This should help https secure.csse.uwa.edu.au run help2002?p np opt B440


SVG not supported 11:14am Thu 7th Sep, Christopher M.

Agree, or (better) learn how to insert a real TAB in VScode.


SVG not supported 11:14am Thu 7th Sep, Christopher M.

In the files you've posted I can see the 4 spaces. If you had a TAB, it'd likely be indent by 8 spaces. Also, your 2 input files are not C (programming language) files, so I suggest not giving them a ".c" extension.


SVG not supported 11:03am Thu 7th Sep, Christopher M.

No relation but if someone was interested in an Apple desktop machine for home, this Gumtree sale seems like a bargain. Of course, make sure you sight the receipt to ensure that it's not stolen https www.gumtree.com.au s-ad clarkson desktops m...


SVG not supported 10:36am Thu 7th Sep, Christopher M.

Hi Jordan, Please read other help2002 messages before posting a question. The question has been asked, and answered, many times already. Thanks.


SVG not supported 10:29am Thu 7th Sep, Christopher M.

Yes, thanks. And just to clarify this (c.f. another student's email), only the very first character needs to be a TAB. You may provide either spaces or TABs between the words on each line.


SVG not supported 10:25am Thu 7th Sep, Christopher M.

Please read the very first Clarification, from 24th August.


SVG not supported 10:20am Thu 7th Sep, Christopher M.

Yes, thank you lab fac. We don't get enough chance to discuss this in our lectures, and rushed over it because there's so many different types of devices and how they interact with the data-bus (and, in fact, modern systems will have several data-buse...


SVG not supported 10:05am Thu 7th Sep, Christopher M.

Please read this explanation https secure.csse.uwa.edu.au run help2002?p np opt B440


SVG not supported 9:58am Thu 7th Sep, Christopher M.

ANONYMOUS wrote Firstly, thanks for explaining your confusion misunderstanding in such great detail, it helps to provide an answer knowing what you don't understand or what you've overlooked. What you and a number of other students have described as '...


SVG not supported 4:51am Wed 6th Sep, Christopher M.

ANONYMOUS wrote A process that is sleeping is blocked (for a period of time), so the transition time for Ready- Blocked applies. If you review the 5-state model, https teaching.csse.uwa.edu.au units CITS2002 lectures lecture07 09.html there is only ...


SVG not supported 4:46am Wed 6th Sep, Christopher M.

ANONYMOUS wrote As given, just a simple FIFO queue. A process's time on the CPU has no 'meaning' for the READY queue, unless you're suggesting the processes that haven't used the CPU much in the past should be given greater future access to the CPU (...


SVG not supported 4:31am Wed 6th Sep, Christopher M.

(sorry, I can't find the original comment that identified this) Thanks for identifying this confusion. I've modified the sample solution, and added this to the Clarifications "If a process calls the 'wait' system-call when it has no children, it sh...


SVG not supported 4:16am Wed 6th Sep, Christopher M.

Yes, just an integer division.


SVG not supported 3:57am Wed 6th Sep, Christopher M.

I believe the problem reporting negative I O times has been corrected. Please report any problems. The arithmetic was being performed using a standard int (4 bytes), which overflowed with larger (faster) I O speeds. If you're having similar probl...


SVG not supported 3:57am Wed 6th Sep, Christopher M.

I believe the problem reporting negative I O times has been corrected. Please report any problems. The arithmetic was being performed using a standard int (4 bytes), which overflowed with larger (faster) I O speeds. If you're having similar probl...


SVG not supported 6:13am Tue 5th Sep, Christopher M.

The Evolution of Computing From 8-bit to 64-bit "In the early days of computing, the alignment of bit lengths to powers of two wasn't always a given. Nonetheless, many early computers embraced these dimensions. The highest value a CPU could address i...


SVG not supported 6:00am Tue 5th Sep, Christopher M.

ANONYMOUS wrote Yes, that 1st IDLE should not be reported there. It's not a bug in the logic of what's happening, just in where it's reported by the debug printing. I'll correct it.


SVG not supported 5:58am Tue 5th Sep, Christopher M.

ANONYMOUS wrote Please re-read the (online) project sheet - you may be reading quoting from a printed copy. When a number of changes were made yesterday, that requirement was also removed (to make things much simpler).


SVG not supported 5:39am Tue 5th Sep, Christopher M.

ANONYMOUS wrote There's only been two versions of the sample, one a few days after Workshop 5, and the second installed yesterday and described in the Clarifications. The second was the result of students reporting problems with the first, and but bo...


SVG not supported 4:57am Tue 5th Sep, Christopher M.

Yes, that's correct.


SVG not supported 4:54am Tue 5th Sep, Christopher M.

ANONYMOUS wrote The above. You first unblock any sleeping processes that finish at the current time. If there are multiple such sleeping processes, they are unlocked in the order in which they started sleeping. The same holds for each of the following b...


SVG not supported 6:01pm Mon 4th Sep, Christopher M.

Solutions to our 2 items of formative assessment are available from https teaching.csse.uwa.edu.au units CITS2002 formative.php (of note, not a single student asked about any of the questions; unsure what to conclude from that)


SVG not supported 5:44pm Mon 4th Sep, Christopher M.

Agreed - I think that this is now fixed. Would appreciate you trying it again. Thank you.


SVG not supported 5:31pm Mon 4th Sep, Christopher M.

I believe that that is covered in the Clarifications which list the order in which different event-types result in things being unblocked. In your example, any sleeping processes would be unblocked before the blocked-on-I O process.


SVG not supported 5:16pm Mon 4th Sep, Christopher M.

ANONYMOUS wrote Yes, exactly what it means. I cannot see where the perceived complexity comes from - if we're talking about the queue of SLEEPING processes, because it's a queue , any sleeping processes that wake-up at the same time will all be at th...


SVG not supported 5:08pm Mon 4th Sep, Christopher M.

ANONYMOUS wrote I'm unsure if this is a new point, or if you're reiterating the same point made in your post just 77 minutes earlier?


SVG not supported 5:07pm Mon 4th Sep, Christopher M.

Sorry, but I cannot understand your description or reasoning here. I'm wondering if there's confusion because multiple 'things' are sometimes reported at happening at the same (integral) time? For example, if a process has spent a 5 full usecs computin...


SVG not supported 2:46pm Mon 4th Sep, Christopher M.

ANONYMOUS wrote Between the values of, say, 10usecs and 50usecs we assume that the process on the CPU is performing some calculation computation requiring the CPU. Have a look at that in the sample solution (verbose) and let me know if that's not cl...


SVG not supported 2:43pm Mon 4th Sep, Christopher M.

ANONYMOUS wrote Thanks Yes, very likely a bug through only testing with too-small values. A negative time quickly suggests a problem with overflow in the calculation of time required. Will look into it.


SVG not supported 9:59am Mon 4th Sep, Christopher M.

Please read https secure.csse.uwa.edu.au run help2002?p np opt B339 and let us know if it clarifies things for you.


SVG not supported 9:59am Mon 4th Sep, Christopher M.

Please read https secure.csse.uwa.edu.au run help2002?p np opt B339 and let us know if it clarifies things for you.


SVG not supported 9:58am Mon 4th Sep, Christopher M.

Please read https secure.csse.uwa.edu.au run help2002?p np opt B339 and let us know if it clarifies things for you.


SVG not supported 9:58am Mon 4th Sep, Christopher M.

Please read https secure.csse.uwa.edu.au run help2002?p np opt B339 and let us know if it clarifies things for you.


SVG not supported 9:58am Mon 4th Sep, Christopher M.

Please read https secure.csse.uwa.edu.au run help2002?p np opt B339 and let us know if it clarifies things for you.


SVG not supported 9:58am Mon 4th Sep, Christopher M.

Please read https secure.csse.uwa.edu.au run help2002?p np opt B339 and let us know if it clarifies things for you.


SVG not supported 9:57am Mon 4th Sep, Christopher M.

Please read https secure.csse.uwa.edu.au run help2002?p np opt B339 and let us know if it clarifies things for you.


SVG not supported 9:57am Mon 4th Sep, Christopher M.

Please read https secure.csse.uwa.edu.au run help2002?p np opt B339 and let us know if it clarifies things for you.


SVG not supported 9:52am Mon 4th Sep, Christopher M.

Please read the updated Clarifications page https teaching.csse.uwa.edu.au units CITS2002 projects project1-clarifications.php (4th September) which defines the process scheduling order. The revised sample solution schedules the processes by followi...


SVG not supported 1:39pm Sun 3rd Sep, Christopher M.

The commands file is a list of the commands that could be run. It is not a file of commands that must be run.


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported 6:51am Fri 1st Sep, Christopher M.

ANONYMOUS wrote This is very likely because the line 50usecs exit does not begin with a TAB character. The revised sample solution will check for and announce this (your) error, although your solution may assume that the input files are corr...


SVG not supported 4:41pm Thu 31st Aug, Christopher M.

ANONYMOUS wrote We'll be sticking with the project description - that the request for the fastest reading device received the data-bus next. For any combination of read and write speeds, and the order of requests, it's (probably) possible to construct...


SVG not supported 4:14pm Thu 31st Aug, Christopher M.

ANONYMOUS wrote I cannot put any exact figure on it; as stated in another reply, I'm just working through a lot of non-2002 things.


SVG not supported 12:08pm Thu 31st Aug, Christopher M.

Not a direct answer, yet, but here https secure.csse.uwa.edu.au run help2002?p np opt B317 year 2023


SVG not supported 9:33am Thu 31st Aug, Christopher M.

The sample solution clearly does not meet many students' expectation of what they expect to see. Yes, it will be changed and explained clarified, particularly with regard to how and when state transitions are implemented. The goal is to define, and req...


SVG not supported 8:33am Thu 31st Aug, Christopher M.

"Replacing a sort algorithm in the FreeBSD kernel has improved its boot speed by a factor of 100 or more and although it's aimed at a micro-VM, the gains should benefit everyone. MicroVMs are a hot area of technology R D in the last half decade or ...


SVG not supported 6:42am Thu 31st Aug, Christopher M.

Great reply - thanks. It's almost as if induction is involved Yes, a process may spawn another process whose definition has already appeared, or is yet to appear, in the commands file.


SVG not supported 6:08am Thu 31st Aug, Christopher M.

"Computers are no longer getting faster. Future improvements in speed will come less from better hardware and more from faster, more efficient programming." "Programs written with Python are notoriously slow - up to 60,000 times slower than code writt...


SVG not supported 5:48am Thu 31st Aug, Christopher M.

Hi Jacob, I understand (most of) your question, but there's no general one-size-fits-all answer. The best choice is going to be specific for a particular program - number of variables and functions, required degree of sharing between functions and, if...


SVG not supported 5:08am Thu 31st Aug, Christopher M.

ANONYMOUS wrote Hi, yes all values in the 2 files are integers. The space-or-tab separated words in the files, such as "200usecs", can easily be captured with an expression such as int x atoi(word); because the atoi() function will retur...


SVG not supported 12:15pm Wed 30th Aug, Christopher M.

ANONYMOUS wrote Previously asked here https secure.csse.uwa.edu.au run help2002?p np opt U199


SVG not supported 12:11pm Wed 30th Aug, Christopher M.

ANONYMOUS wrote The decision to determine if the 'waiting' process has any children to wait for is made by the OS. The OS requires the use of the CPU to execute code to make that decision. The process invoking the 'wait' needs to be placed somewhere so...


SVG not supported 12:02pm Wed 30th Aug, Christopher M.

Hello Amanda, There's no single correct answer, and it may be a property characteristic of a particular OS, or even a configurable attribute of an OS that is read and then used after the whole OS boots. In the 1980s and 90s there was a lot of research ...


SVG not supported 11:45am Wed 30th Aug, Christopher M.

ANONYMOUS wrote It's specified in the Clarifications.


SVG not supported 6:56am Wed 30th Aug, Christopher M.

https www.youtube.com watch?v Dbd3z8t9qc


SVG not supported 5:46am Wed 30th Aug, Christopher M.

ANONYMOUS wrote Yes; the workshop was intended as a Q A session, to provide explanation, and to demonstrate that there would be a web-based sample solution available. It wasn't intended for that demonstration to be used as a definitive example. Ple...


SVG not supported 5:11am Wed 30th Aug, Christopher M.

ANONYMOUS wrote I'm afraid that I have no helpful suggestions, but the very first thing you need to setup when you have it working again is to establish a regular backup routine for your files - using either a simple USB key, to a cloud-drive such a...


SVG not supported 4:59am Wed 30th Aug, Christopher M.

ANONYMOUS wrote There is a limit to how many processes are ever supported. An attempt to exceed this limit would be an error (such as in a real OS, a call to fork() for fail). The project sheet states that there will be no errors in the input files,...


SVG not supported 5:10am Tue 29th Aug, Christopher M.

"Vannevar Bush, a professor at MIT Massachusetts Institute of Technology wanted to solve differential equations. Now, remember, in those days there weren t computers like we have today. Everything had to be done by hand or with mechanical devices...


SVG not supported 5:02am Tue 29th Aug, Christopher M.

Hello Jacob, I believe the answer to your question is the same as this one https secure.csse.uwa.edu.au run help2002?p np opt B272 year 2023


SVG not supported 4:56am Tue 29th Aug, Christopher M.

"Every era of computing has its standout stars. The brains behind our beloved machines, the Central Processing Units (CPUs), have shaped technological advancement. Here's our list of the ten most influential CPUs that have left their mark on history ...


SVG not supported 4:54am Tue 29th Aug, Christopher M.

That is not a error, it is a statement about the sample solution (at present).


SVG not supported 4:29am Tue 29th Aug, Christopher M.

ANONYMOUS wrote There's a single CPU, and it can be used by either users' executing processes, or the OS (performing state transitions). Before the CPU can be used by the OS, or at the very beginning of the OS's actions, the executing user process's ...


SVG not supported 4:17am Tue 29th Aug, Christopher M.

I'm presuming that you're storing your value sin integers, 32-bit or 64-bit. From wherever that 875523205136 value came from, it will occupy the same amount of storage, in the same variable, as a value of zero. ?? Setting an integer value to zero, wi...


SVG not supported 4:07am Tue 29th Aug, Christopher M.

ANONYMOUS wrote We tend to use the word 'blocked' to mean that a process is waiting for a resource (such as I O), or a time interval (sleeping), but not when simply waiting for its turn on the CPU. When a running process's time quantum expires, the pr...


SVG not supported 3:53am Tue 29th Aug, Christopher M.

ANONYMOUS wrote Your thinking and the stated numbers are correct, but the statement '...which is very slow' is not true. How long will it take to perform 5 million (integer) comparisons on a laptop capable of 2 billion instructions per second? Your la...


SVG not supported 6:27pm Mon 28th Aug, Christopher M.

Hi Joshua, did you receive some help in a lab session today?


SVG not supported 5:10pm Mon 28th Aug, Christopher M.

ANONYMOUS wrote Oops, sorry about that - I was thinking about the state transition time, not the timequantum. You are correct - the TQ will have no affect on a process sleeping.


SVG not supported 5:03pm Mon 28th Aug, Christopher M.

This is the sort of question where the best answer is "if you know what would make your program better, why not do it?". We know that the format of the input files is correct, and their data consistent, so most of those 'difficult' errors won't occur....


SVG not supported 4:57pm Mon 28th Aug, Christopher M.

This is correct, although the define.... has nothing to do with global variables - it is a definition understood by the C preprocessor.


SVG not supported 4:56pm Mon 28th Aug, Christopher M.

ANONYMOUS wrote The actions necessary to perform a state transition are executed by the OS, using the single CPU. Thus only one state transition can occur at one time.


SVG not supported 4:52pm Mon 28th Aug, Christopher M.

Very likely that it has a setting to insert 'soft tabs', instead of 'hard tabs', by inserting the appropriate number of spaces to reach the next 'tabstop', often a multiple of 8. And, let's never miss a chance to show this great clip from Silicon Vall...


SVG not supported 1:30pm Mon 28th Aug, Christopher M.

ANONYMOUS wrote I suggest that you keep thinking about the problem; the numbers in the command-file, alone, do not reflect the interactions between the processes and the I O devices, both of which affect the total execution time.


SVG not supported 1:28pm Mon 28th Aug, Christopher M.

Are the system-calls indented with a TAB character?


SVG not supported 12:16pm Mon 28th Aug, Christopher M.

ANONYMOUS wrote It's not clear if you have a question. Yes, the two input files are text-files, which you can process with fopen() , fgets() , and flclose() .


SVG not supported 12:11pm Mon 28th Aug, Christopher M.

ANONYMOUS wrote There's 'always' multiple ways to implementing something. Different (correct) implementation should produce the same results - as long as a process requests something requiring a state transition at a certain time, and ends up at its ...


SVG not supported 11:32am Mon 28th Aug, Christopher M.

Yes, and it's realistic, too. From man 3 sleep - "System activity may lengthen the sleep by an indeterminate amount." You can perform arithmetic in 'doubles' without requiring double variables or managing time with doubles. In the case of findi...


SVG not supported 5:58am Mon 28th Aug, Christopher M.

"Just over three decades ago, Linus Torvalds sowed the seeds for Linux by sending an email detailing his plans to develop a free OS" https www.xda-developers.com on-this-day-in-1991-linus-torvalds-announced-linux


SVG not supported 5:09am Mon 28th Aug, Christopher M.

Times are measured in integers. It makes no sense to think of them as floating-point values, or to consider rounding. If the 'precise time' is actually 14.2usecs, then it certainly hasn't finished by 14usecs.


SVG not supported 5:07am Mon 28th Aug, Christopher M.

A process asking to sleep for some time, is asking for that time on 'the clock on the wall'. If it makes the request to sleep for 10 seconds at time 3 seconds, it expects to be awoken at 13 seconds (but can't expect to run at exactly 13 seconds). T...


SVG not supported 4:58am Mon 28th Aug, Christopher M.

Your understanding is pretty complete, other than the "prioritises the processes on which needs the least time to be completed", so I'm unsure why you describe things as "can't make heads or tails of this project"?? I don't believe it's the sort of ...


SVG not supported 4:41am Mon 28th Aug, Christopher M.

ANONYMOUS wrote There's no single 'true' answer, and it may depend on your implementation. You may not wish to put it in the Ready queue as it's not yet Ready to run, and you may not wish to keep it in the (a) Blocked queue if that would interfere with...


SVG not supported 4:35am Mon 28th Aug, Christopher M.

Hello. I'm wondering if you have a question or are just walking through your understanding, here? Please use the web-based sample solution, rather than the Workshop 5 recording, for comparison purposes.


SVG not supported 5:34am Sun 27th Aug, Christopher M.

Please remember to look at, and attempt, the unit's formative assessment https teaching.csse.uwa.edu.au units CITS2002 formative.php To get the most benefit from these items of formative assessment, you should attempt them under "test conditions" -...


SVG not supported 5:01am Sun 27th Aug, Christopher M.

ANONYMOUS wrote Yes.


SVG not supported 4:22am Sun 27th Aug, Christopher M.

ANONYMOUS wrote Yes. Suggest that you experiment with the sample solution https secure.csse.uwa.edu.au run myscheduler-sample , remembering that even a sleeping process is blocked, too.


SVG not supported 4:20am Sun 27th Aug, Christopher M.

ANONYMOUS wrote You are welcome to change, add to, or extend the starting code in any way you wish. The sample solution has about 22 functions in addition to the 3 empty ones in the starting code. Some of the functions are as few as 5 lines long, but t...


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported 8:51pm Sat 26th Aug, Christopher M.

It was available and announced about an hour before you posted this.


SVG not supported 7:37pm Sat 26th Aug, Christopher M.

A web-based sample solution for Project-1 is available from https secure.csse.uwa.edu.au run myscheduler-sample There is NO requirement for your project to reproduce the sample's debug output. The read and write system-calls are not yet implemented...


SVG not supported 5:55pm Sat 26th Aug, Christopher M.

An annotated history of some character codes or ASCII American Standard Code for Information Infiltration "This document is about character codes, specifically a history of ASCII(1), the American Standard Code for Information Interchange, and immediate...


SVG not supported 5:49pm Sat 26th Aug, Christopher M.

The History of the First Computer Shell "BASH? PowerShell? It all traces back to 1963. And the work of an amazing Frenchman, CTTS, and Multics." https lunduke.locals.com post 2853097 the-history-of-the-first-computer-shell


SVG not supported 3:55am Sat 26th Aug, Christopher M.

ANONYMOUS wrote The time that a process is on the CPU is accumulated, a statistic of that process. The time taken to make a system-call, or to make a state transition is not performed by the process - it is performed by the OS on behalf of the proces...


SVG not supported 3:46am Sat 26th Aug, Christopher M.

ANONYMOUS wrote You're welcome to change function names, parameters, and return types as you wish (or not even use them). DO NOT change the numeric preprocessor constants near the top of the file, else your code won't match the sample solution. It's o...


SVG not supported 3:43am Sat 26th Aug, Christopher M.

ANONYMOUS wrote You gain marks for good practices. There is no 'negative marking', so you do not lose marks for anything. Marking starts at 0 and goes upwards, not from 100 going downwards. The use of global variables was discussed in Friday's Works...


SVG not supported 3:39am Sat 26th Aug, Christopher M.

ANONYMOUS wrote That approach may work, but the 'picking apart the times' part is difficult because you must account for the interactions and competition between multiple processes. As discussed in Friday's Workshop 5, another (I believe much easier...


SVG not supported 12:49pm Fri 25th Aug, Christopher M.

ANONYMOUS wrote Yes. Please read https secure.csse.uwa.edu.au run help2002?p np opt U179 I cannot imagine why you would need to call usleep() for this project. It suggests a misunderstanding, which should be addressed by watching today's Work...


SVG not supported 6:04pm Thu 24th Aug, Christopher M.

command1 and command2 should each be able to spawn each other. There is no 'ordering' in the commands file (other than the 1st command being the only one automatically executed).


SVG not supported 6:01pm Thu 24th Aug, Christopher M.

"Ancient civilisations hunted for spice; in the 20th century we fought wars for oil. In 2023, the world s most precious commodity is an envelope-sized computer chip. The H100, a rectangular black maze of circuits with a shimmering microchip at its ...


SVG not supported 5:31pm Thu 24th Aug, Christopher M.

ANONYMOUS wrote The format of the commands file is always the same, and your project does not have to check for files with an invalid format. The command names, such as 'shortsleep' or 'elephant', can be anything, and your project does not need to (...


SVG not supported 5:28pm Thu 24th Aug, Christopher M.

Let's use the correct terminology (for C), which will keep the questions and answers as clear as possible. Firstly, we're not 'importing' anything. Secondly, string.h is not a library - it refers to a text file containing the declaration (not impleme...


SVG not supported 5:23pm Thu 24th Aug, Christopher M.

The data-bus is used when a process requests some I O (either way), and the use lasts from when that process acquires the data-bus until the transfer of data completes. While the data-bus is in use by one process, another process can be using the CPU....


SVG not supported 5:18pm Thu 24th Aug, Christopher M.

ANONYMOUS wrote A good question. I'll decide whether the parent or child runs next, and add the 'answer' to the Clarifications. Yes, the parent only waits for the child if the parent calls wait . Yes, the ratio of CPU-time-consumed-by-all-processe...


SVG not supported 5:14pm Thu 24th Aug, Christopher M.

ANONYMOUS wrote (now not sure how this comment fits in the discussion sequence, but) yes, there's many ways to have multiple processes in the READY queue.


SVG not supported 5:12pm Thu 24th Aug, Christopher M.

ANONYMOUS wrote When cal is spawned it 'starts off' in the READY queue (nothing to do with what its parent subsequently does).


SVG not supported 5:11pm Thu 24th Aug, Christopher M.

Firstly, let's use the correct terminology. A process whose time-quantum expires is not blocked, it moves from RUNNING to READY. Your process, above, would run for 100usecs, move to the READY queue, eventually move back to the CPU, run for 100usecs a...


SVG not supported 12:43pm Thu 24th Aug, Christopher M.

ANONYMOUS wrote If the running process invokes 'spawn', and that new process also invokes 'spawn', all before any of them have called 'exit'.


SVG not supported 12:30pm Thu 24th Aug, Christopher M.

ANONYMOUS wrote No, that's incorrect. The commands in the commands-file are akin to all the available executable programs on your laptop's disk. When you boot up your laptop they do not all start running, only the ones you request to run (with spa...


SVG not supported 12:25pm Thu 24th Aug, Christopher M.

ANONYMOUS wrote Great. The very first sentence of the project sheets says "...to emulate the scheduling of processes" but I'll change that to "...emulate (or simulate)".


SVG not supported 9:38am Thu 24th Aug, Christopher M.

ANONYMOUS wrote That's a very 'big' question. I strongly recommend that you find a project partner, have some discussions with them about what you both understand, get along to a lab session to discuss your ideas with the helpful people there, and att...


SVG not supported 7:59am Thu 24th Aug, Christopher M.

ANONYMOUS wrote A single tab character - written with ' t' in C - should appear as the first character on the line. Unsure what you mean by "modify the file", as the sequence - tab - is only written on the project sheet so that it's clearly there; ...


SVG not supported 7:56am Thu 24th Aug, Christopher M.

ANONYMOUS wrote The answer is 'yes', because that's what the project specification says. In practice, a system would also introduce a mechanism to avoid what's called "process starvation" - the chance that a process waits indefinitely because there's ...


SVG not supported 1:29pm Wed 23rd Aug, Christopher M.

ANONYMOUS wrote You will need to create and test your project with a variety of attributes values in those 2 files. I am unsure what you mean by '...in the main file'. Review the starting code.


SVG not supported 1:27pm Wed 23rd Aug, Christopher M.

Just in the very standard way. Suppose a process has (only) 150usecs of computation to perform, before it exits. When it first gets on to the CPU it runs for the time-quantum of 100usecs, then it is kicked-off the CPU. It eventually returns to the CPU f...


SVG not supported 11:11am Wed 23rd Aug, Christopher M.

ANONYMOUS wrote Not sure what you mena by this question. Commands have names, just a single word on a line by itself, and every line following that begins with a TAB character after the system-calls executed (in order) by that command.


SVG not supported 11:03am Wed 23rd Aug, Christopher M.

Great answer; thanks.


SVG not supported 10:59am Wed 23rd Aug, Christopher M.

ANONYMOUS wrote No, but you'll soon have access to a sample solution against which you may test your own project, for varying input files. And don't forget to test your project with varying sysconfig files, too, not just command files.


SVG not supported 7:21am Wed 23rd Aug, Christopher M.

ANONYMOUS wrote Hi. Nearly everyone in the unit is new to how the internals of an OS work, so you're not alone. However, you do appear to have some serious misunderstandings about the project (as do many others), so I strongly recommend that you fi...


SVG not supported 5:26am Tue 22nd Aug, Christopher M.

ANONYMOUS wrote No problems, that's the idea That process will stay on the CPU over 91, 92, ... usecs. After the process has been on the CPU for 100usecs (exhausted its time-quantum), it will be moved to the Ready queue. When it is next on the CPU,...


SVG not supported 10:17am Mon 21st Aug, Christopher M.

Fixed; thank you.


SVG not supported 7:31am Mon 21st Aug, Christopher M.

Details of the 1st project are available from https teaching.csse.uwa.edu.au units CITS2002 projects project1.php Please post requests for clarification about any aspect of the project to help2002 so that all students may remain equally informed. S...


SVG not supported 7:40am Sun 20th Aug, Christopher M.

There is a (rare) case where you may need to consider their difference - exit() terminates the current process, no matter where (from which function) it's called. If exit() is called from main() the whole process terminates. - re...


 UWA week 33 (2nd semester, week 4) ↓
SVG not supported 6:46am Sat 19th Aug, Christopher M.

Career advice for young system programmers https glaubercosta-11125.medium.com career-advice-for-young-system-programmers-c7443f2d3edf "If you are interested in the plumbing of our software industry systems level programming, much of the career a...


SVG not supported 6:42am Sat 19th Aug, Christopher M.

Hmmmm. https mastodon.social ni C a t 1 0 0 0 2 7 4 6 2


SVG not supported 6:07am Sat 19th Aug, Christopher M.

ANONYMOUS wrote Unsure if you've read the (original) linked paper, but there's a huge amount of detail on the questions selected https arxiv.org pdf 2308.02312.pdf All good reasons, and everyone will have their own reasons and preferences (though ...


SVG not supported 10:51am Thu 17th Aug, Christopher M.

Someone emailed me this question and the reply will be of general interest I don't believe that there's that much history discussed in the lectures (happy to hear others' opinions, too), just some mostly in Lectures 1 and 3. But I feel a bit of hist...


SVG not supported 4:39am Thu 17th Aug, Christopher M.

You may remember in the 1st lecture that I stated that new technical developments in operating systems attract far less attention, today, than do changes in the user interface, fonts, and desktop images. The major development attracting all attention ...


SVG not supported 3:21am Thu 17th Aug, Christopher M.

Windows feature that resets system clocks based on random data is wreaking havoc Windows Secure Time Seeding resets clocks months or years off the correct time. https arstechnica.com security 2023 08 windows-feature-that-resets-system-clocks-based-on...


SVG not supported 3:13am Thu 17th Aug, Christopher M.

ChatGPT answers more than half of software engineering questions incorrectly You may want to stick to Stack Overflow for your software engineering assistance. https www.zdnet.com article chatgpt-answers-more-than-half-of-software-engineering-question...


SVG not supported 4:06am Wed 16th Aug, Christopher M.

Dear Computer Science Students, QFin UWA has our biggest event of the year coming up THE QFIN PANEL NIGHT and we'd love to see you all there Tickets https www.eventbrite.com.au e panel-night-tickets-692141553017 Date 31st of August Time 6pm - 8p...


SVG not supported 4:01am Wed 16th Aug, Christopher M.

Someone sent in this question by email The main() function may return (to the operating system) by calling the exit() function, simply calling return, or 'dropping off' the bottom curly bracket. In the last 2 cases, no call to exit() ...


SVG not supported 12:04pm Tue 15th Aug, Christopher M.

ANONYMOUS wrote When formatting output with printf() and friends, there really is no difference. However when scanning parsing input with scanf() and friends, using " i" supports reading in integers in different numeric bases, such as base-10 (decimal...


SVG not supported 5:35pm Mon 14th Aug, Christopher M.

ANONYMOUS wrote Actually neither of those possibilities - project-1 may be undertaken by 1 or 2 people - project-2 may be undertaken by 1 or 2 people You may have different partners for each project.


SVG not supported 4:35am Mon 14th Aug, Christopher M.

Just "Chris". Glad that you resolved the problem, even if it took such drastic measures. I can't imagine how why you'd be seeing the error you did without it also appearing in so many other situations.


SVG not supported 7:26am Sun 13th Aug, Christopher M.

This problem has me stumped. I've tried your code on 2 Apple M2 (Xcode) installations, Ubuntu Linux (gcc), and Redhat Linux (an earlier gcc), and all produced the expected result. I can't imagine why your installation would produce those weird, large v...


SVG not supported 7:21am Sun 13th Aug, Christopher M.

This problem appears to be fixed now.


SVG not supported 7:20am Sun 13th Aug, Christopher M.

Sorry about that Kazi; fixed now (a copy is also available in the sample solution). Good luck,


 UWA week 32 (2nd semester, week 3) ↓
SVG not supported 5:41am Thu 10th Aug, Christopher M.

Lots of students emailing with common questions about Project-1, so please read https teaching.csse.uwa.edu.au units CITS2002 projects project1.php which should answer all of your questions before the project's release. Good luck,


SVG not supported 4:40am Thu 10th Aug, Christopher M.

The default installation of vim simply displays its text in monochrome, but by adding commands to (one of) vim's "startup files", it will add colours to code keywords, comments, .... To download and add the necessary commands to vim's startup file pr...


SVG not supported 4:29am Thu 10th Aug, Christopher M.

Using foreground background job control in your shell The traditional (40 year old) way to run the vim editor is inside the same window that receives your shell commands. I choose to edit files and compile them in the same window (and in most of my wo...


SVG not supported 7:59am Wed 9th Aug, Christopher M.

Did you make any progress in solving this problem, Jie?


SVG not supported 6:56pm Tue 8th Aug, Christopher M.

ANONYMOUS wrote Yes, the digital certificate expired on Saturday, affecting those on Unify and via the VPN. UWA-IT have been informed (though, you'd think they would have already been aware of it).


SVG not supported 4:02am Mon 7th Aug, Christopher M.

Just "Chris". I'm afraid that I can't tell from your description alone. It's likely to be the use of an incorrect datatype or a formatting error - not sure. As the exercise is not being assessed, please post your code here.


SVG not supported 7:58am Sun 6th Aug, Christopher M.

In Friday's workshop we discussed the forthcoming challenge of storing time values in 32-bit integers. Here's a recent article on how Debian Linux is addressing it Debian looks forward to 2038 https lwn.net Articles 938149 "On January 19, 2038, the...


 UWA week 31 (2nd semester, week 2) ↓
SVG not supported 6:35am Sat 5th Aug, Christopher M.

ANONYMOUS wrote Have a look at the sample solution for the lab; you'll see that the 'magic calculation' is 1 - firstday; At the end of the workshop I also asked those attending about the difficulty of the workshop - there was about 100 students there...


SVG not supported 6:32am Sat 5th Aug, Christopher M.

Some sample solutions for Labsheet-1 and Workshop-2 are now available from our Schedule page https teaching.csse.uwa.edu.au units CITS2002 schedule.php Sample solutions will be available each week, but I won't make an announcement, such as this, eve...


SVG not supported 6:05am Fri 4th Aug, Christopher M.

Tracing the Lines From the Telephone to Unix https www.deusinmachina.net p history-of-unix "Starting in 1925, and still around 98 years later (albeit with a few name changes), Bell Labs has done some incredible things during its lifespan. Propelled ...


SVG not supported 2:48pm Thu 3rd Aug, Christopher M.

This invitation is for the semester 2 meeting of the CS education committee in room 2.07 Computer Science building. Tuesday 22nd August at 1pm. This committee meets once a semester (Tuesday 1pm around week 5 or 6 for one hour). The full committee consis...


SVG not supported 6:44am Thu 3rd Aug, Christopher M.

Throw away your first draft of your code https ntietz.com blog throw-away-your-first-draft "The next time you start on a major project, I want you to write code for a couple of days and then delete it all. Just throw it away." ... I'm not proposing th...


SVG not supported 6:37am Thu 3rd Aug, Christopher M.

Western Digital HDD capacity hits 28TB as Seagate looks to 30TB and beyond https arstechnica.com gadgets 2023 08 western-digital-hdd-capacity-hits-28tb-as-seagate-looks-to-30tb-and-beyond "After a couple of decades of talk, Seagate announced earlier...


SVG not supported 5:27am Tue 1st Aug, Christopher M.

Just to note that the unit has TWO projects - see the unit's webpage (perhaps you're only seeking a partner for the 2nd project).


SVG not supported 3:06pm Mon 31st Jul, Christopher M.

The webpage https askubuntu.com questions 161652 how-to-change-the-default-font-size-of-xterm gives a simple solution. In your existing xterm, execute prompt echo 'xterm font -fixed- - - -18- ' .Xresources prompt xrdb -merge ...


SVG not supported 11:28am Mon 31st Jul, Christopher M.

In today's lecture I mentioned a famous keynote talk at an OS conference that had its audience thinking. Found it Systems Software Research is Irrelevant http doc.cat-v.org bell labs utah2000 utah2000.pdf "This talk is a polemic that distills th...


SVG not supported 5:34am Mon 31st Jul, Christopher M.

While not an OS topic we focus on, this ArsTechnica article provides a great summary of contemporary mainframes The IBM mainframe How it runs and why it survives https arstechnica.com information-technology 2023 07 the-ibm-mainframe-how-it-runs...


SVG not supported 5:32am Mon 31st Jul, Christopher M.

(I'm afraid) it's working for me this morning; no-one else reported a problem, so hopefully it was just a transient problem.


 UWA week 30 (2nd semester, week 1) ↓
SVG not supported 5:44am Sat 29th Jul, Christopher M.

Nothing particular that I remember, other than encouragement to read through the webpages outlining Linux and C compiler software before commencing next week's Labsheet-1.


SVG not supported 5:37am Sat 29th Jul, Christopher M.

ANONYMOUS wrote Firstly (because I'm a bit of a pedant about using the correct terminology) it's not WSL that's providing the online manual that you're reading. WSL is a program enabling you to run a Linux distribution 'inside' WSL. Ubuntu is one s...


SVG not supported 5:02am Sat 29th Jul, Christopher M.

Thanks. I'd presumed that they'd already done that, if (hopefully) following the instructions here https teaching.csse.uwa.edu.au units CITS2002 labsheets software.php But maybe.... The package manpages-posix is correctly named and still exists, https...


SVG not supported 4:55am Sat 29th Jul, Christopher M.

You're welcome to use Virtualbox if you prefer it - this unit doesn't require (or assess) any virtualisation software required to give you access to Linux on your own devices.


SVG not supported 4:53am Sat 29th Jul, Christopher M.

Thanks Chris; wasn't aware of this. To others, maybe wondering why this was posted - UWA-IT used to run RHEL on students' lab computers (I think that they only support Linux in CSSE and EECE), but that choice was an annoyance because UWA-IT couldn't g...


SVG not supported 4:31pm Thu 27th Jul, Christopher M.

While there are no structured lab sessions in Week-1, you may like to start reading some introductory material on using the Linux operating system and the standard C compiler (including the C compiler on your Mac, if that is your chosen platform). In...


SVG not supported 12:14pm Thu 27th Jul, Christopher M.

Please complete 2 Student Experience Surveys that UWA is participating in during August - The national QILT Student Experience Survey (SES), conducted for the Australian Government Department of Education https www.qilt.edu.au surveys student-expe...


SVG not supported 5:18am Wed 26th Jul, Christopher M.

ANONYMOUS wrote Yes, that's what it's reporting in its Table 4. And from that table, it's easy to explain why - if an equivalent Python program takes 70x longer to execute, and Python is still executing as fast as it can on the same CPU, then it'll ex...


SVG not supported 12:30pm Tue 25th Jul, Christopher M.

Wow, they just don't make Computer Scientists like this anymore https www.youtube.com watch?v dirjtPAlZPM


SVG not supported 7:08am Tue 25th Jul, Christopher M.

In the 1st lecture, I mentioned that some computing environments, such as cloud-based platforms, are very concerned about their energy consumption (at least to minimise costs), and their environmental impact. Here's an interesting article on that topi...


SVG not supported 3:34am Tue 25th Jul, Christopher M.

It appears that UWA-ITS have corrected their network configuration, and so our unit's webpage teaching.csse.uwa.edu.au units CITS2002 is available without requiring the VPN. (please report any similar problems if they appear more than just transien...


SVG not supported 3:29am Tue 25th Jul, Christopher M.

ANONYMOUS wrote Yes, I did speak past 9 52 yesterday, but only to say that I have another lecture at 10am (every Monday), and asked students not to rush to the front after the lecture with individual questions (that request was ignored). There's alway...


SVG not supported 6:16pm Mon 24th Jul, Christopher M.

Hello, Pronounced just 'Chris'. I have no control over the lecture recordings. Recording starts automatically at 8 58 and finishes at 9 52; anything that passes through the microphone or the video projectors is recorded, trimmed, and stored somewhere...

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  5:07AM Sep 06 2023
Privacy policy