7.1 About scatter-loading The scatter-loading mechanism enables you to specify the memory map of an image to the linker using a description in a text ...
分类:
其他好文 时间:
2018-05-11 16:12:29
阅读次数:
178
取消和关闭任务的方法:标志状态域、中断、Future、重写不可中断的阻塞的interrupt()方法、通过线程池的shutdown()和shutdownNow()方法、生产者消费者中加入毒丸对象、try finally中处理非常正线程终止。 ...
分类:
编程语言 时间:
2018-05-11 16:09:29
阅读次数:
206
最常见到的runtime exception 异常 来源;某小哥https://www.cnblogs.com/jack4738/p/6953242.html ArithmeticException, 算术异常ArrayStoreException, 将数组类型不兼容的值赋值给数组元素时抛出的异常B ...
分类:
其他好文 时间:
2018-05-10 18:41:37
阅读次数:
223
目录 线程状态切换 终止线程(stop) 中断线程(interrupt) 挂起(suspend) 和 继续执行(resume) 等待线程结束(join) 和 谦让(yield) sleep 线程优先级 守护线程 线程的同步操作(synchronized, wait, notify) 线程状态切换 终 ...
分类:
编程语言 时间:
2018-05-04 01:42:14
阅读次数:
206
import java.util.concurrent.CountDownLatch; public class TestNativeOutOfMemoryError { public static void main(String[] args) { for (int i = 0;; i++) { ...
分类:
其他好文 时间:
2018-05-03 19:53:32
阅读次数:
98
參考資料為 TMS320F2803x Piccolo System Control and Interrupts PIECTRL Register (Address 0xCE0) PIE Interrupt Acknowledge Register (PIEACK) Register (Addres ...
分类:
其他好文 时间:
2018-05-02 22:43:39
阅读次数:
190
写在最前: 本次使用的内核源码:Linux 0.12版本。 这篇文章在讲什么:旨在利用源码来帮助理解操作系统中进程这一概念。 进程:这是对正在运行程序的一个抽象。操作系统的其它所有内容都是围绕着进程的概念展开的。一个进程就是一个正在执行程序的实例。 一.操作系统是如何组织进程的 1.进程数 在sch ...
分类:
系统相关 时间:
2018-05-01 12:28:39
阅读次数:
221
Java并发编程:CountDownLatch、CyclicBarrier和Semaphore 在java 1.5中,提供了一些非常有用的辅助类来帮助我们进行并发编程,比如CountDownLatch,CyclicBarrier和Semaphore,今天我们就来学习一下这三个辅助类的用法。 以下是本 ...
分类:
其他好文 时间:
2018-04-30 23:55:35
阅读次数:
305
one shot本身的意思的只有一次的,结合到中断这个场景,则表示中断是一次性触发的,不能嵌套。对于primary handler,当然是不会嵌套,但是对于threaded interrupt handler,我们有两种选择,一种是mask该interrupt source,另外一种是unmask该 ...
分类:
其他好文 时间:
2018-04-27 13:49:21
阅读次数:
239