![]() It must be done such that the reader observes the data consistently and atomically instead of observing an incomplete or intermediate state of data. E.g.: in the context of a networking application, the writer could be a control plane thread writing to a hash table, the reader could be a data plane thread performing lookups in the hash table to identify an action to take on a packet.Įssentially, the writer wants to communicate some data to the reader. Reader threads/processes (readers) read the same data structure to carry out some action. Writer threads/processes (writers) update a data structure in shared memory in order to convey information to readers.
0 Comments
Leave a Reply. |