绕过几个小节?
原标题:Lock across several jvm?
最佳回答
然而,在将电动电动电完全与Rube-Goldbergian和碎片一道向我发出电动之前,使用一种双管齐下的双管双管双管齐下双管。
问题回答
there are several solutions for this. if your lock should be within the same machine, you can use a server socket to implement it (The process that manages to bind to the port first owns the lock, other processes waits for the port to become available).
如果你需要一个跨越多台机器的锁,你可以使用一个超时锁。 这将需要。 服务器运行。 如果你对这个解决办法感兴趣,我可以颁布一些法典。
http://www.whalin.com/memcadated/“rel=“nofollow noretinger”here。
页: 1 这可能似乎是解决你需要的过于沉重的办法,但至少是审议。
相关问题
热门标签
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding