[TUHS] Antoni Sawicki reports Locus (AIX PS/2 TCF) working on pair of emulated 486s
G. Branden Robinson via TUHS
tuhs at tuhs.org
Sat Nov 21 13:00:09 AEST 2026
At 2026-11-20T18:34:06-0800, Larry McVoy via TUHS wrote:
> And the fine grained locking. Oof. I really wanted data structure
> locking, imagine you could do
>
> struct some_name _needs_locking {
> whatever
> }
>
> and the locking was just built into the struct. If you have done
> threading work, you know this doesn't scale at all. Locking at the
> item level doesn't work when you need locking at the linked list
> level. But I have always imagined a world where stuff like this would
> work well enough and you did the rest through Locus clusters.
In Ada 95, this is known as a "protected type".
https://dwheeler.com/lovelace/s13s3.htm
You can also create a container such that you have, effectively, a
protected array of a type that can be protected or not. Optionally you
can overload operators such that they syntactically look like array
accesses (but array element accesses in Ada use parentheses, not square
brackets).
Regards,
Branden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20261120/e19ceca1/attachment.sig>
More information about the TUHS
mailing list