multiple readers/writers

21 views
Skip to first unread message

Raoul Duke

unread,
Nov 19, 2019, 7:52:24 PM11/19/19
to ats-lang-users
apologies, i couldn’t find this / figure this out from some basic web search results. 

is it possible to do statically enforced max N readers, max M writers? eg the classic “prevent reading from a closed file” only supports a single open-close. 

Hongwei Xi

unread,
Nov 19, 2019, 11:27:25 PM11/19/19
to ats-lan...@googlegroups.com
Yes, I think so. Should be pretty straightforward.
Of course, you need to be more specific about the actual policy.
For example, the policy may state that multiple readers can read
concurrently but at most one writer can write.

On Tue, Nov 19, 2019 at 7:52 PM Raoul Duke <rao...@gmail.com> wrote:
apologies, i couldn’t find this / figure this out from some basic web search results. 

is it possible to do statically enforced max N readers, max M writers? eg the classic “prevent reading from a closed file” only supports a single open-close. 

--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAJ7XQb5VKuhbR386TdO-nKWtf9cgsoAZrRwyu491j1ESvm0kfQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages