码迷,mamicode.com
首页 >  
搜索关键字:rt thread    ( 14779个结果)
Thread状态有哪些?它是如何工作的?
线程(Thread)是并发编程的基础,也是程序执行的最小单元,它依托进程而存在。一个进程中可以包含多个线程,多线程可以共享一块内存空间和一组系统资源,因此线程之间的切换更加节省资源、更加轻量化,也因此被称为轻量级的进程。 线程的状态在 JDK 1.5 之后以枚举的方式被定义在 Thread 的源码中 ...
分类:其他好文   时间:2020-07-04 23:05:37    阅读次数:87
手把手教你怎么将linux的一个函数性能搞奔溃
static struct fib_table *fib_empty_table(struct net *net){ u32 id; for (id = 1; id <= RT_TABLE_MAX; id++) if (fib_get_table(net, id) == NULL) return f ...
分类:系统相关   时间:2020-07-04 20:30:01    阅读次数:72
Semaphore信号量原理
Semaphore信号量原理 Semaphore是一个计数信号量,本质是"共享锁". Semaphore维护一个信号量许可集. 线程可以调用acquire()获得信号量的许可. 线程可以调用release()释放其持有的信号量. 使用acquire()请求获得信号量时,若信号量有可用的许可时,线程获 ...
分类:其他好文   时间:2020-07-04 18:45:22    阅读次数:80
Java中的回调机制
调用和回调机制 在一个应用系统中, 无论使用何种语言开发, 必然存在模块之间的调用, 调用的方式分为几种: 1.同步调用 同步调用是最基本并且最简单的一种调用方式, 类A的方法a()调用类B的方法b(), 一直等待b()方法执行完毕, a()方法继续往下走. 这种调用方式适用于方法b()执行时间不长 ...
分类:编程语言   时间:2020-07-04 15:35:20    阅读次数:39
CountDownLatch源码分析
CountDownLatch的两个核心用法 1.一个线程等待多个线程执行完之后再去执行 2.多个线程等待一个线程执行完之后再去执行 public CountDownLatch(int count) { if (count < 0) throw new IllegalArgumentException ...
分类:其他好文   时间:2020-07-04 11:50:42    阅读次数:61
C++模板推导丢失引用问题
先看一个例子: #include <numeric> #include <vector> #include <algorithm> #include <iterator> #include <thread> #include <iostream> #include <functional> usin ...
分类:编程语言   时间:2020-07-04 01:41:11    阅读次数:74
handler
https://www.jianshu.com/p/f70ee1765a61 如何判断当前线程是不是主线程 Looper.myLooper() == Looper.getMainLooper() Looper.getMainLooper().getThread() == Thread.current ...
分类:其他好文   时间:2020-07-03 21:16:52    阅读次数:38
RSA解密时BadPaddingException解决方法
工作的时候遇到程序需要进行RSA加密解密的部分,在写第一版测试的时候,出现了:Exception in thread "main" javax.crypto.BadPaddingException: Data must start with zero at sun.security.rsa.RSAP ...
分类:其他好文   时间:2020-07-03 21:05:14    阅读次数:76
Understanding Reed Relay Terminology (RT)
https://www.pickeringrelay.com/reed-relay-terminology/ The relay industry has evolved with a set of its own nomenclature that describes the products a ...
分类:其他好文   时间:2020-07-03 15:40:26    阅读次数:69
Tomcat配置https
1、使用Java提供的工具生成证书 路径不能是文件夹,否则会找不到出现说 java.lang.Exception: 密钥库文件存在, 但为空的情况 keytool -genkey -alias myKeyStore -keyalg RSA -keystore 'D:\work\keystore\ke ...
分类:Web程序   时间:2020-07-03 15:20:07    阅读次数:96
共14779条   上一页 1 ... 42 43 44 45 46 ... 1478 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!