- 浏览: 84873 次
文章分类
最新评论
-
bailangfei3344:
自我介绍 -
regionwar:
你好,转化为人为:1、不该加锁的不要加锁:局部变量,单线程占用 ...
关于java锁机制的优化 -
danni505:
希望能交流:
msn:danni-505#hotmail.co ...
关于java锁机制的优化 -
ouspec:
收藏的东西不错。
TOP500 -
willpower:
The idea behind is e-sync IO do ...
Rethink the sync
java 代码
- public class MultiSemaphore
- {
- protected int value;
- public MultiSemaphore(int v) {
- value = v;
- }
- //The P method here takes an integer parameter of how many instances of the
- //semaphore lock have been requested. The method will block until all
- //instances are available.
- public synchronized void P(int no) {
- while ((value - no) < 0) {
- try {
- wait();
- }
- catch (InterruptedException e) { }
- }
- value=value-no;
- }
- // the V method allows the caller to release a number of instances of the
- // semaphore lock
- public synchronized void V(int no ) {
- value=value+no;
- notify();
- }
- }
发表评论
-
字符编码笔记:ASCII,Unicode和UTF-8 (引用)
2009-01-07 10:39 924字符编码笔记:ASCII,Unicode和UTF-8 阮一峰 ... -
How to set up a simple LRU cache using LinkedHash
2008-11-03 18:05 1278How to set up a simple LRU cach ... -
Scalability?
2008-10-07 14:07 825严格上讲,scalability还没有正式定义, 甚至有人觉得 ... -
Cray Reminiscences
2007-08-29 15:54 790Kirk Pepperdine's attendence of ... -
lock-free
2007-06-18 22:06 9881. http://www.ibm.com/developer ... -
解决java.lang.OutOfMemoryError: PermGen space(转帖)
2007-06-05 18:07 3159解决方案就是:在启动服务器时加上指定PermGen区域的内存大 ... -
Performance...
2007-06-05 15:11 977« I used to work for... | Mai ... -
数据仓库
2007-04-18 10:38 1116... -
Expressions Transform
2007-04-13 11:13 1385Expressions, Conversion and Eva ... -
Java cleanup code
2007-04-03 12:20 1291Java shutdown hook guarantee th ... -
Java performance tunning
2007-04-03 11:37 936http://www.javaperformancetunin ... -
Running IE from command line
2007-04-03 10:58 1109Here's a simple way you can ru ... -
Unicode and UTF8
2007-04-03 10:27 907What is Unicode? Unicode provid ... -
Daemon Thread Notes
2007-04-03 09:16 26491. 只要程式中的non-Daemon thread都結束了. ... -
How to know the main class of a jar file?
2007-04-02 15:18 1027Easy. Here is an implementation ... -
The best chinese BAT tutorial(from www.boofee.net/bigfee/)
2007-03-27 11:58 1328如何创建批处理文件? 不要听了批处理文件就感到很神气 ... -
Basics - Binary search
2007-03-26 15:53 963java 代码 public class Bin ... -
MergeSort
2007-03-23 17:26 835MergeSort is a sample solutio ... -
Graph data structure
2007-03-23 12:04 8721. adjacent matrix good for bor ... -
Functional Programming For The Rest of Us
2007-03-23 10:39 1284I like connect beautiful artic ...
相关推荐
计算机领域权威期刊《Communications of the ACM 》上的一篇关于机器学习的综述性文章,作者为华盛顿大学计算机系机器学习大牛 Pedro Domingos,其著有畅销书《Master Algorithms》
cmd-comand,use command to debug your code in linux environment,it's a useful tool for linux programmer.you can add stub in your code and run the cmd tool to debug it.
A Sampler of Useful Computational Tools for Applied Geometry, Computer Graphics, and Image Processing
*The Spectral Kurtosis: A Useful Tool for Characterizing Non-Stationary Signals*. Mechanical Systems and Signal Processing, 8(5), 467-478. --- 以上总结了论文《谱峭度:一种用于表征非平稳信号的有效...
A Sampler of Useful Computational Tools for Applied Geometry Computer Graphics and Image Processing 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有...
A Useful Website for ED50 Calculation: https://www.aatbio.com/tools/ec50-calculator/
it's a useful manual to configurate juniper firewall
a substantial amount of “black art” that is hard to find in textbooks. This article summarizes twelve key lessons that machine learning researchers and practitioners have learned. These include ...
a very useful link to covert the non-unicode string to the unicode one a very useful link to covert the non-unicode string to the unicode one a very useful link to covert the non-unicode string to the...
This is a fork of awesome link with new structure, additional license info and github's star info for every link, with a lot of new links (all non-mobile github projects with 390 or more star) and so ...
根据提供的文件信息,标题与描述均提到了“a very useful javascript”,这表明文章的主要内容将围绕一种非常有用的JavaScript技术或库展开。然而,由于提供的信息有限(尤其是【部分内容】给出的数字串似乎与主题...
A Visual Studio add-in provides a number of useful workspace-related functions(673KB)
DNAMAN is a good biological software, which can be used to analize the composition of bases and their complexs, to predict the sites of Restriction Endoenzymes and to help you to to primer design.
在文档《Three Architecture Styles for a Useful Data Lake》中,Gartner的分析师Svetlana Sicular强调了三种不同的数据湖架构风格:入流量数据湖(inflow datalake)、出流量数据湖(outflow datalake)和数据科学...
A Few Useful Things to Know about Machine Learning.pdf )
nco verilog code, this this a useful for dds,you can gain kinds of wave through this code,and help for you!nco verilog code, this this a useful for dds,you can gain kinds of wave through this code,and...
基于 Transformer 的锂电池寿命预测(Remaining Useful Life,RUL)(Python完整源码和数据) Packages pytorch 1.8.0 pandas 0.24.2 基于 Pytorch 的 Transformer 锂电池寿命预测(Remaining Useful Life,RUL)
In a word processor one of the most useful functions is search and replace (especially when writing HTML with Notepad ;-) ) and this project includes a routine to do just that. It can replace words ...
开学季 游泳把 收录一些游泳的文章_useful-article.zip 开学季 游泳把 收录一些游泳的文章_useful-article.zip 开学季 游泳把 收录一些游泳的文章_useful-article.zip 开学季 游泳把 收录一些游泳的文章_useful-...