Are lists thread-safe?

后端 未结 4 2011
星月不相逢
星月不相逢 2020-11-22 16:17

I notice that it is often suggested to use queues with multiple threads, instead of lists and .pop(). Is this because lists are not thread-safe, or for some oth

4条回答
  •  醉话见心
    2020-11-22 16:52

    Here's a comprehensive yet non-exhaustive list of examples of list operations and whether or not they are thread safe. Hoping to get an answer regarding the obj in a_list language construct here.

提交回复
热议问题