Skip to content
#

hashmap

Here are 351 public repositories matching this topic...

WowBighead
WowBighead commented Sep 18, 2018

For example,List has items as {header,item1,item2,item3}.
When I want to delete item2 and item3 from List by asynchronous goroutines,as below.

[G2 ] go Delete(item2)
[G3 ] go Delete(item3)

If G2 got runtime and deleted item2 first,and then G3 executed CAS to delete item3.
The item3's left was item2 before G3 executed CAS .
While item2's next was not be nil,in which case the CAS in G3

Improve this page

Add a description, image, and links to the hashmap topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the hashmap topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.