note 129891 added to ref.shmop
| From: | eddeeboo@gmail.com | Date: | Sat, 30 Nov 2024 14:33:29 +0000 |
| Subject: | note 129891 added to ref.shmop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221692@lists.php.net to get a copy of this message | ||
Despite the fact that reads from and writes to the shared memory are not atomic, reading and writing
just ONE byte is always atomic. This can be very useful if your application frequently reads and
rarely writes "small" chunks of data (~10-15 bytes). You can avoid using any kind of locks
by signing your data by 8-bit checksum (like CRC-8). This is an effective and reliable way to ensure
that your data is not corrupted. The redundancy is naturally 8 bits.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 46.39.51.215)
----
Manual Page -- https://php.net/manual/en/ref.shmop.php
Edit -- https://main.php.net/note/edit/129891
Del: integrated -- https://main.php.net/note/delete/129891/integrated
Del: useless -- https://main.php.net/note/delete/129891/useless
Del: bad code -- https://main.php.net/note/delete/129891/bad+code
Del: spam -- https://main.php.net/note/delete/129891/spam
Del: non-english -- https://main.php.net/note/delete/129891/non-english
Del: in docs -- https://main.php.net/note/delete/129891/in+docs
Del: other reasons-- https://main.php.net/note/delete/129891
Reject -- https://main.php.net/note/reject/129891
Search -- https://main.php.net/manage/user-notes.php