what does it mean by thread serialization in c++?

前端 未结 3 1779
后悔当初
后悔当初 2021-02-20 01:13

I know about serializing objects and how they are saved to disk, but what does thread serialization actually mean? Could any one help me on this one and point me in the right di

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-20 01:55

    Serialize actually means to publish in a serial form, as in one after another. So Thread Serialization means to make sure that a certain set of events occurs in a sequence not at the same time

    So a heap that has serialized thread access means that calls to the heap will occur in the order that they are made and will not actually occur at the same time. This is probably done by the means of a global lock.

提交回复
热议问题