* [dpdk-users] How to using add/lookup hash table in multithread environment
@ 2017-05-05 2:32 vuonglv
0 siblings, 0 replies; only message in thread
From: vuonglv @ 2017-05-05 2:32 UTC (permalink / raw)
To: users
Hi DPDK team,
I am using DPDK to build a program in multithread environment.
I use 1 thread (on 1 core) to add and delete hash table key ( by
rte_hash_add_key() and rte_hash_del_key() function); And use 8 thread
(on 8 others core) to lookup (by rte_hash_lookup() function ).
As I know, rte_hash_lookup() function is /multi-thread safe,/ and
te_hash_add_key() and rte_hash_del_key() function is not /multi-thread
safe/.
So: Do I need using /lock/ when I add or delete key by 1 thread while 8
others thread is looking-up?
Many thanks,
Vuong Le
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-05 2:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-05 2:32 [dpdk-users] How to using add/lookup hash table in multithread environment vuonglv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).