Re: some ideas for multithreading support

<[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <c924be7152a14304be6b67f65011d588@HE105658.emea1.cds.t-internal.com>
Hi,

Sam wrote:
>I may be missing something, but it seems to me that the requirements are
>contradictory:
>If one thread keeps adding and removing a key, then the other thread may
>iterate over the table forever, presenting the same key over and over again.

Indeed. However you could add to the front of the list and expect the
iterator to already have passed that point. IIRC one can seek inspiration from
the RCU lists in the Linux kernel, even though we have nothing to do with RCU.

But I was just considering updates to the single linked list within one bucket.
Updating the array of buckets concurrently is hairy (what if someone
removes the last element in one bucket, wants to resize, etc.)
Plain fun.

Regards,
	Jörg

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.