兼容IE6下,各种浏览器,鼠标滑动img图片阴影效果以下为源码:Html源码mutal为事件触发层shade为遮罩层mutual内不要有空格,不然ie6下会有text的bug,会导致阴影加高。Css源码:(less形式)shade层需要绝对定位,top,left,right,bottom,均为零。背...
分类:
其他好文 时间:
2014-11-17 19:21:09
阅读次数:
175
http://www.nowamagic.net/librarys/veda/detail/636Hackers solve problems and build things, and they believe in freedom and voluntary mutual help. To be...
分类:
其他好文 时间:
2014-11-15 18:27:08
阅读次数:
308
VxWorks进程间通信2 -- 信号量一.信号量的概念是实现任务互斥、同步操作的主要机制。VxWorks提供的信号量经过了高度优化,在所有任务间通信机制中,速度最快。二.信号量的分类Binary Semaphores(二进制):完成互斥、同步操作的最佳方式;速度最快,最常用。Mutual Excl...
分类:
系统相关 时间:
2014-11-07 11:04:12
阅读次数:
227
DescriptionJill has been investing in a mutual fund for a while. Since her income has varied, the amount of money she has added to the investment has ...
分类:
其他好文 时间:
2014-11-01 19:01:12
阅读次数:
219
ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionJill has been investing in a mutual fund for a while. Since her income has varied, the am...
分类:
其他好文 时间:
2014-10-20 14:46:38
阅读次数:
214
A semaphore initialized to one, and which is used such that it only has at most one permit available, can serve as a mutual exclusionlock.This is more...
分类:
其他好文 时间:
2014-09-20 18:29:59
阅读次数:
251
互斥体实现了“互相排斥”(mutual exclusion)同步的简单形式(所以名为互斥体(mutex))。互斥体禁止多个线程同时进入受保护的代码“临界区”。因此,在任意时刻,只有一个线程被允许进入这样的代码保护区。 任何线程在进入临界区之前,必须获取(acquire)与此区域相关联的互斥体的所有....
分类:
其他好文 时间:
2014-08-29 12:25:27
阅读次数:
224
死锁的条件 互斥条件(Mutual exclusion) :资源不能被共享,只能由一个进程使用。 请求与保持条件(Hold and wait):进程已获得了一些资源,但因请求其它资源被阻塞时,对已获得的资源保持不放。 不可抢占条件(No pre-emption) :有些系统资源是不可抢占的,当...
分类:
其他好文 时间:
2014-08-27 18:39:18
阅读次数:
152
信号量的分类Mutual Exclusion Semaphores(互斥):一种特殊的二进制信号量,专门针对互斥操作进行了优化。Binary Semaphores(二进制):完成互斥、同步操作的最佳方式;速度最快,最常用。Counting Semaphores(计数):类似于二进制信号量,可记录信号...
分类:
其他好文 时间:
2014-08-27 16:10:07
阅读次数:
199
Non-blocking algorithm
In computer science, a non-blocking algorithm ensures that threads competing
for a shared resource do not have their execution indefinitely
postponed by mutual ex...
分类:
其他好文 时间:
2014-08-26 09:52:09
阅读次数:
270