本文介绍了远程共享访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



据我所知,Web服务本身无法使用真正的共享对象或资源(如文件)来实现。 ..我可以管理

使用互斥锁进行多次更新以进行读写。


因此,我认为我应该使用远程服务使用互斥锁管理对文件的调用

。然后我会从

网络服务电话中拨打远程服务。


想法?


As far as I can tell, there is no way in a Web service, per se, to have
a truly shared object or resource such as a file...one that I can manage
multiple updates on with a mutex for both reading and writing.

Therefore, I think I should use a Remoted service that manages calls to
the file, with a mutex. I would then call the Remoted service from the
web service calls.

Thoughts?

推荐答案






我理解如何在文件上设置互斥锁,但我怎么创建说一个

全局对象,例如文件,所有Web服务实例都可以在没有冲突的情况下进行
访问?



I understand how to set up a mutex on a file, but how do I create say a
global object, such as file, that all instances of the web service can
access without collisions ?




我理解如何在文件上设置互斥锁,但是我怎么创建说一个
全局对象,例如文件,所有Web服务实例都可以在没有冲突的情况下访问?



I understand how to set up a mutex on a file, but how do I create say a
global object, such as file, that all instances of the web service can
access without collisions ?



这篇关于远程共享访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 22:54