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

Unclear sentence in the solution of readers-writers problem #27

Closed
javadr opened this issue Feb 26, 2023 · 2 comments
Closed

Unclear sentence in the solution of readers-writers problem #27

javadr opened this issue Feb 26, 2023 · 2 comments

Comments

@javadr
Copy link
Contributor

javadr commented Feb 26, 2023

In Writer-priority readers-writers solution section, what do you mean precisely by getting obsolete data with predictable turnaround times?

Actually, I don't get your idea. Could you please explain it more?

‍‍For some applications, it might be better to get obsolete data with predictable turnaround times.

@AllenDowney
Copy link
Owner

If a reader proceeds while a writer is waiting, the reader won't see what that writer was going to write, so the data it reads is obsolete in that sense. But that might be better than letting a reader starve while writers come and go.

@javadr
Copy link
Contributor Author

javadr commented Feb 26, 2023

Thanks, that makes sense.

@javadr javadr closed this as completed Feb 26, 2023
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

No branches or pull requests

2 participants