Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
labs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LiU-TDDD25
labs
Commits
12474caf
Commit
12474caf
authored
2 years ago
by
Anders Märak Leffler
Browse files
Options
Downloads
Patches
Plain Diff
Added note on threading.Condition.
parent
99596763
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/include/references.bib
+4
-0
4 additions, 0 deletions
doc/include/references.bib
doc/lab4.pdf
+0
-0
0 additions, 0 deletions
doc/lab4.pdf
doc/lab4.tex
+8
-0
8 additions, 0 deletions
doc/lab4.tex
with
12 additions
and
0 deletions
doc/include/references.bib
+
4
−
0
View file @
12474caf
...
...
@@ -18,6 +18,10 @@
howpublished
=
{\url{https://docs.python.org/3/library}}
}
@misc
{
python-condition
,
howpublished
=
{\url{https://docs.python.org/3/library/threading.html#threading.Condition}}
}
@misc
{
python-ipc
,
howpublished
=
{\url{https://docs.python.org/3/library/ipc.html}}
}
...
...
This diff is collapsed.
Click to expand it.
doc/lab4.pdf
+
0
−
0
View file @
12474caf
No preview for this file type
This diff is collapsed.
Click to expand it.
doc/lab4.tex
+
8
−
0
View file @
12474caf
...
...
@@ -145,6 +145,14 @@ join and leave the system. For simplicity, you may assume that the peer holding
the token never disappears (
\eg
, due to a system crash) without passing the
token to someone else.
\subsection
{
Additional notes
}
So far in this course we have only explored certain behaviours when it
comes to locks. You may want to consult the Python documentation for
\code
{
threading.Condition
}
for some additional mechanisms (rather than
try to implement them yourself, as this is not the focus of this
lab).
\cite
{
python-condition
}
\section
{
Conclusion
}
In this lab, you have implemented one of the algorithms for distributed mutual
exclusion. As motivated in the introduction, such an algorithm is a crucial
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment