Skip to content

求解答 #1

@orangeMiuMiu

Description

@orangeMiuMiu

您好,获取连接那里是单例模式的话,有个疑问想请教:
①如果线程A和B用同一conn写数据,写过去的数据会不会有问题。
②如果A先写完了把连接关掉了,但是B还正在写数据conn被关掉了,这种场景怎么办

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions