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

Aevtikhov exercises #4

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

Aevtikhov exercises #4

wants to merge 40 commits into from

Conversation

Aevtikhov
Copy link

No description provided.

@eliastor eliastor changed the title e1 Unit 1 Jun 23, 2022
@@ -253,12 +254,16 @@ Opposite situation will be if we'll try to append elements to slice concurrently
3. any reads or writes of the variable it is locking
4. any writes to the variable it is locking

#### Answer: 3
Copy link
Owner

@eliastor eliastor Jul 8, 2022

Choose a reason for hiding this comment

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

Mutex itself is not aware of memory you're trying to lock. Mutex just locks other concurrent calls of Mutex.Lock()
Reffering to Mutex.Lock() docs: "If the lock is already in use, the calling goroutine blocks until the mutex is available."

@eliastor eliastor changed the title Unit 1 Unit 1,2 Jul 26, 2022
@eliastor eliastor changed the title Unit 1,2 Aevtikhov exercises Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants