How do I make Windows file-locking more like UNIX file-locking?

后端 未结 4 1292
攒了一身酷
攒了一身酷 2020-12-09 16:52

UNIX file-locking is dead-easy: The operating system assumes that you know what you are doing and lets you do what you want:

For example, if you try to delete a file

4条回答
  •  再見小時候
    2020-12-09 17:18

    That doesn't really help if the hung process still has the handle open. It won't release the resources until that hung process releases the handle. But anyway, in Windows it is possible to force close a file out from under a process that's using it. Process Explorer from sysinternals.com will let you look at and close handles that a process has open.

提交回复
热议问题