This is one of my homework questions:
What are the problems using linkedlist on multithreaded program, What is the alternative?
I answered as follows and I would appreciate any other advices:
The problem is the lack of concurrency - in order to use the linked list we will have to use lock on it so that the changes made to the internal objects it holds will be relaible (since every object holds reference to the next object), once we lock the linked list we are basically 'shutting down' the options to use it with multiple threads, the alternative is an array since we can lock every item seperatly.
I'm totally not sure on my answer, any advices?...