3 ms·
This also means that you can operate on these data structures with multiple threads. Depending on the number of CPUs you have and the problem domain, you could
by swannodette 16y ago
This also means that you can operate on these data structures with multiple threads. Depending on the number of CPUs you have and the problem domain, you could very well operate more quickly (and safely!) on your data then with mutable data structures.
- runT1ME 16y agoAre you sure? I mean, from what I understand, a linked-list is an 'immutable structure' (in the sense that once a pointer is set, it can never be changed, but it CAN go from empty to something). But, I don't think any old linked list can be safely read and modified from a multithreaded environment without threading issues...