You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For instance, in tcpstream.c and udpstream.c, __sync_fetch_and_add() is used to update the number of bytes transferred. This can cause contention between cores if they share cache lines (i.e. false sharing). Ideally, each thread would update their own counter without any kind of locking, and these numbers would be tallied up after joining the worker threads.
The text was updated successfully, but these errors were encountered:
For instance, in
tcpstream.c
andudpstream.c
,__sync_fetch_and_add()
is used to update the number of bytes transferred. This can cause contention between cores if they share cache lines (i.e. false sharing). Ideally, each thread would update their own counter without any kind of locking, and these numbers would be tallied up after joining the worker threads.The text was updated successfully, but these errors were encountered: