It's UWAweek 47

help3002

This forum is provided to promote discussion amongst students enrolled in CITS3002 Computer Networks.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message. How do I ask a good question?

Displaying selected article
Showing 1 of 503 articles.
Currently 43 other people reading this forum.


 UWA week 18 (1st semester, week 9) ↓
SVG not supported

Login to reply

👍?
helpful
7:48am Sun 5th May, Christopher M.

ANONYMOUS wrote:
> Are threads allowed within a station server process, ie to handle receiving and sending datagrams?
Yes, permitted, because they are both 'core' in the C11 snd Python-3.12 standards, so no external libraries or modules required. However, you'll very likely find that using threads makes your program more complicated to design (and debug) than just using the select() or poll() system calls. At the 'heart' of a threads library used for I/O is a call to select() or poll() to determine if any thread can execute without blocking for the I/O. In our project, each thread has nothing to do, nothing to calculate, while waiting for I/O to be ready or complete, so you've employed a layer of 'nothingness' where the whole process will still just block waiting for I/O, because it has nothing else to do.

The University of Western Australia

Computer Science and Software Engineering

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