It's UWAweek 20 (1st semester, week 11)

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?

Chris is away until 4th June. Dr Atif Mansoor is the unit's coordinator until then.
Displaying the 2 articles in this topic
Showing 2 of 443 articles.
Currently no other people reading this forum.


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

Login to reply

👍?
helpful
11:05am Sat 4th May, ANONYMOUS

Are threads allowed within a station server process, ie to handle receiving and sending datagrams?


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  5:07AM Sep 06 2023
Privacy policy