Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assignments/parallel-firewall: Add parallel firewall assignment #121

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

andreistan26
Copy link

Add parallel firewall assignment for the compute chapter.

The goal is to introduce students to parallel programming with a single producer multiple consumer problem that uses a thread-safe ring buffer to transfer data between threads.

Prerequisite Checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Updated relevant documentation (if needed).

Description of changes

@andreistan26 andreistan26 force-pushed the parallel-firewall branch 8 times, most recently from 8565a02 to 8648318 Compare November 3, 2024 15:04
@andreistan26 andreistan26 added needs-rendering The PR makes changes to the website that need to be rendered area/assignment Update to homework assignments and removed area/assignment Update to homework assignments labels Nov 3, 2024
Copy link

github-actions bot commented Nov 3, 2024

Add parallel firewall assignment for the compute chapter.

The goal is to introduce students to parallel programming
with a single producer multiple consumer problem that uses
a thread-safe ring buffer to transfer data between threads.

Signed-off-by: Andrei Stan <[email protected]>
@andreistan26 andreistan26 added needs-rendering The PR makes changes to the website that need to be rendered and removed needs-rendering The PR makes changes to the website that need to be rendered labels Nov 3, 2024
Copy link

github-actions bot commented Nov 3, 2024

@github-actions github-actions bot added area/assignment Update to homework assignments area/infra Update to infrastructure / scripts kind/new New content / item labels Nov 4, 2024
Copy link

@fabianpatras fabianpatras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left a suggestion for the introductory part of the statement.
Please use as much (or as little) of it as you want.

I wanted to give a bit more details about what happens in a real world scenario and how this is all dumbed down scenario using made up traffic (to not have them think they also need to do networking stuff in this assignment)

content/assignments/parallel-firewall/README.md Outdated Show resolved Hide resolved
@fabianpatras fabianpatras force-pushed the parallel-firewall branch 3 times, most recently from ab806f8 to e07f264 Compare November 4, 2024 15:15
Add more context about the assignment

Signed-off-by: Anton-Fabian Patras <[email protected]>
Make checker look out for the binary to run because if the compiation
failed, there won't be any.

Also, use `$(MAKE)` instead of plain `make` from inside the
`tests/Makefile` as that is the intended way to do it.

Also 2, removing `-i` from the makefile invocation make the inner
makefile fail after the first error, and adding `-` makes it not stop
the outter makefile rule (i.e. also run the checker)

Signed-off-by: Anton-Fabian Patras <[email protected]>
@fabianpatras fabianpatras force-pushed the parallel-firewall branch 2 times, most recently from a3e9eec to 814c01e Compare November 4, 2024 15:25
`__packed` only exists inside the Linux Kernel.

Signed-off-by: Anton-Fabian Patras <[email protected]>
@fabianpatras fabianpatras added needs-rendering The PR makes changes to the website that need to be rendered and removed needs-rendering The PR makes changes to the website that need to be rendered labels Nov 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

@Alex-deVis Alex-deVis added needs-rendering The PR makes changes to the website that need to be rendered and removed needs-rendering The PR makes changes to the website that need to be rendered labels Nov 10, 2024
Copy link

@andreistan26 andreistan26 added needs-rendering The PR makes changes to the website that need to be rendered and removed needs-rendering The PR makes changes to the website that need to be rendered labels Nov 12, 2024
Copy link

@andreistan26 andreistan26 added needs-rendering The PR makes changes to the website that need to be rendered and removed needs-rendering The PR makes changes to the website that need to be rendered labels Nov 12, 2024
Copy link

@andreistan26 andreistan26 force-pushed the parallel-firewall branch 2 times, most recently from d90b2a9 to 7dc5fb0 Compare November 12, 2024 21:58
@andreistan26 andreistan26 force-pushed the parallel-firewall branch 2 times, most recently from 7207fdd to 267bfc8 Compare November 12, 2024 22:08
Clarify the CLI arguments accepted by the `firewall` binary.
Rephrase support code comment from `processes` -> `threads`.

Signed-off-by: Andrei Stan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/assignment Update to homework assignments area/infra Update to infrastructure / scripts kind/new New content / item needs-rendering The PR makes changes to the website that need to be rendered
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants