2

Size: px
Start display at page:

Download "2"

Transcription

1 操作系统 2. 进程 (Processes) 和线程 (Threads) 任课教师 : 熊焰 黄 文超

2 进程是什什么? 需求 矛盾 : 需要在 一台电脑上 同时 执 行行多个任务 但 一个 CPU 同 一时刻只能 一个任务 如果让 用户 自 己去切换任务, 太难

3 进程是什什么? 进程是程序执 行行时的 一个实例例 A process is just an instance of an executing program 它包括 程序计数器器 (Program Counter, PC) 寄存器器 (Registers) 相关的变量量 (Variables) 所以, 看起来, 每个进程都拥有 一个虚拟的 CPU

4 进程是什什么? 进程的简单切换 One program counter A B C Process switch A Four program counters B C D Process D C B A D Time (a) (b) (c) Figure 2-1. (a) Multiprogramming four programs. (b) Conceptual model of four independent, sequential processes. (c) Only one program is active at once.

5 进程是什什么? 进程与程序的区别? 进程 是 一个动态的概念, 而程序是 一个静态的代码 块 不不同的进程可以执 行行同 一个程序 每 一个进程都有 自 己的 生命期 等等

6 进程的创建 哪些事件会触发进程的创建? System initialization. Execution of a process-creation system call by a running process. A user request to create a new process. Initiation of a batch job.

7 查看进程的 方法 进程的创建 tips Windows: 任务管理理器器 Unix: ps 命令 创建进程的系统调 用 Unix: fork( ) Windows: CreateProcess()

8 进程的创建 创建之后 一个 父进程, 一个 子进程 两个进程各 自维护 自 己的地址空间 ( 相互独 立 ) 无法共享可写的内存 ( 有的系统共享可读内存, 如程序的内容 )

9 进程的终 止触发终 止的条件 Normal exit (voluntary). exit(0), ExitProcess() Error exit (voluntary). exit(n) 例例 : 试试 cc foo.c Fatal error (involuntary). Killed by another process (involuntary).

10 进程的层次结构 Unix 由 父进程 生成 子进程..., 形成 一个进程组 Windows 没有进程组的概念, 为每个 生成的进程分配 一个 Handle 作为标识

11 进程的状态 运 行行状态 Running Blocked 阻塞状态 4 Ready 就绪状态

12 进程的状态 Processes 0 1 n 2 n 1 Scheduler

13 进程的实现 进程控制块 (Process Control Blocks, PCB), 里里 面包含 一系列列需维护的 数据 : program counter (PC) stack pointer (SP) memory allocation status of its open files 等等 作 用 :After each interrupt the interrupted process returns to precisely the same state it was in before the interrupt occurred

14 进程的实现 Process management Memory management File management Registers Pointer to text segment info Root directory Program counter Pointer to data segment info Wor king director y Program status word Pointer to stack segment info File descriptors Stack pointer User ID Process state Group ID Pr ior ity Scheduling parameters Process ID Parent process Process group Signals Time when process started CPU time used Children s CPU time Time of next alarm

15 CPU 的利利 用率 CPU utilization = 1 p n CPU utilization (in percent) % I/O wait 50% I/O wait 80% I/O wait Degree of multiprogramming

16 线程 进程 每个进程控制着 一块独 立的地址空间 可不不可能有多个 进程 ( 线程 ) 来控制同 一块地址空间? 需要线程的理理由 : 有些是 用多进程所 无法描述的 更更轻量量级 创建 切换 撤销 运 行行效率 多 CPU 并 行行的 支持

17 线程 Four score and seven years ago, our fathers brought forth upon this continent a new nation: conceived in liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field as a final resting place for those who here gave their lives that this nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we cannot dedicate, we cannot consecrate we cannot hallow this ground. The brave men, living and dead, who struggled here have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember, what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us, that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion, that we here highly resolve that these dead shall not have died in vain that this nation, under God, shall have a new birth of freedom and that government of the people by the people, for the people Keyboard Kernel Disk Figure 2-7. A word processor with three threads.

18 线程 Web server process Dispatcher thread Worker thread User space Web page cache Kernel Kernel space Network connection

19 线程 while (TRUE) { while (TRUE) { get next request(&buf); wait for work(&buf) handoff work(&buf); look for page in cache(&buf, &page); } if (page not in cache(&page)) read page from disk(&buf, &page); retur n page(&page); } (a) (b) Figure 2-9. A rough outline of the code for Fig (a) Dispatcher thread. (b) Worker thread.

20 线程 Model Threads Single-threaded process Finite-state machine Characteristics Parallelism, blocking system calls No parallelism, blocking system calls Parallelism, nonblocking system calls, interr upts 第三种 方法, 当没有线程的 支持时, 需 人为地保存每 个请求的状态

21 线程 经典的线程模型 Process 1 Process 2 Process 3 Process User space Thread Thread Kernel space 特点 : Kernel (a) Kernel (b) 多个线程共享同 一个地址空间 但是, 每个线程各 自执 行行 自 己的任务, 因此也有各 自独 立的状态

22 线程 经典的线程模型 Per-process items Address space Global var iables Open files Child processes Pending alarms Signals and signal handlers Accounting infor mation Per-thread items Program counter Registers Stack State 线程间共享了了哪些资源? 线程间各 自维护着什什么状态?

23 线程 经典的线程模型 Thread 2 Thread 1 Thread 3 Process Thread 1's stack Thread 3's stack Kernel Figure Each thread has its own stack.

24 线程 POSIX 线程 #include <pthread.h> #include <stdio.h> #include <stdlib.h> #define NUMBER OF THREADS 10 void * pr int hello world(void * tid) { / * This function prints the thread s identifier and then exits. * / pr intf("hello World. Greetings from thread %d\n", tid); pthread exit(null); }

25 线程 POSIX 线程 int main(int argc, char * argv[]) { / * The main program creates 10 threads and then exits. * / pthread t threads[number OF THREADS]; int status, i; for(i=0; i < NUMBER OF THREADS; i++) { pr intf("main here. Creating thread %d\n", i); status = pthread create(&threads[i], NULL, print hello world, (void * )i); } if (status!= 0) { pr intf("oops. pthread create returned error code %d\n", status); exit(-1); } } exit(null);

26 线程 用户级线程 Process Thread Process Thread User space Kernel space Kernel Kernel Run-time system Thread table Process table Process table Thread table Figure (a) A user-level threads package. (b) A threads package managed by the kernel.

27 线程 用户级线程 主要特点或区别 : 将整个线程模块放在 用户空间, 内核不不参与管理理线程 优点 : 即使操作系统不不原 生 支持多线程, 也可以通过 自 己编写来实现 ( 比如写个库函数来 支持 ) 切换线程时速度更更快, 不不需要 用户态与内核态的切换 可以 自 己来定义线程的调度算法 可扩展性强 ( 内核所维护的空间受限, 类似于栈空间受限 )

28 线程 用户级线程 难题 : 如何在 用户态中实现阻塞模式 非常困难 一种替代 方法是将 一些操作变成 非阻塞模式 ( 如 read) 另 一种 方法是提前判断下 一个操作是否会阻塞 如何实现线程的切换 运 行行线程需要主动放弃线程 灾难性的问题 : 编程 人员其实只关 心本软件的线程, 但如果其它应 用需要的线程却更更多, 而且频繁阻塞, 怎么办?

29 线程 内核级线程 由内核来保存线程所对应的寄存器器 状态值 及其它信息 缺点 Process Thread 由于系统 ( 内核 ) 调 用, 效率 优点 相对更更低 因为系统调 用, 降低了了编程难 度 Kernel 不不需要使 用 非阻塞 的命令 Process table Thread table

30 线程 内核级线程 问题 1: 当 一个拥有多线程的进程调 用 fork()? 调 用 fork(), 会复制该进程, 生成 子进程 那么, 它拥有的线程也要复制么? 答 : 看情况 问题 2: 一个信号对应多个线程, 怎么办?

31 线程 混 用 用户级与内核级 Multiple user threads on a kernel thread User space Kernel Kernel thread Kernel space Figure Multiplexing user-level threads onto kernel-level threads.

32 进程间通信 InterProcess Communication (IPC) 例例 子 管道 (example: ls -l less ) 滴滴打 车和 支付宝... 三个问题 : 进程之间怎么互传消息? 多个进程不不能 同时 使 用同 一个资源 ( 互斥 ) 资源调度和分配

33 进程间通信 竞态条件 (Race Condition) 两个或多个进程对共享的数据进 行行读或写的操作时, 最终的结果取决于这些进程的执 行行顺序 4 Spooler directory abc out = 4 Murphy s Law: Anything that can go wrong will go wrong Process A 5 6 prog.c prog.n 7 in = 7 Process B 这种情况下, 如何进 行行调试?

34 进程间通信 临界区 (Critical Region) 如何避免 Race condition? 一种 方案 : 禁 止多个进程同时使 用同 一个资源 即 : 互斥 (Mutual exclusion) 那么, 一个程序可以分为两类的 片段 第 一类 片段, 其操作 一定不不会导致互斥, 第 二类 片段, 其操作可能导致互斥 第 二类 片段称之为临界区 (Critical Region, or Critical Section) 进 一步, 我们怎样约束临界区?

35 进程间通信 临界区 (Critical Region) 一个好的 方案应该满 足的条件 任何两个进程不不能同时处于其临界区 ( 阻塞条件 ) 不不应对 CPU 的速度或数量量做任何前提假设 ( 上下 文 ) 临界区外运 行行的进程不不得阻塞任何进程 ( 非阻塞条件 ) 不不得使 用进程 无限期等待进 入临界区 ( 死锁 )

36 进程间通信 临界区 (Critical Region) A enters critical region A leaves critical region Process A B attempts to enter critical region B enters critical region B leaves critical region Process B B blocked T 1 T 2 T 3 T 4 Time

37 进程间通信 实现互斥 忙等 (Busy Waiting) 笨 方法 : 屏蔽中断 (Disabling Interrupts) 当访问临界资源时, 关闭时钟, 没有时钟提示, 则 不不会引起进程切换 缺点 如果始终不不打开中断, 其它进程就 无法运 行行

38 进程间通信实现互斥 忙等 (Busy Waiting) 一个错 方法 : 锁变量量 (Lock Variables) 初始值为 0 如果有进程想进 入临界区, 先看看这个变量量是否为 0 如果为 0, 则设为 1, 离开临界区后, 再设为 0 如果为 1, 则等待 致命问题 : 这个变量量也是互斥的, 访问该变量量的代码也是临界区 ( 看书中例例 子 )

39 进程间通信 实现互斥 忙等 (Busy Waiting) 另 一个 方法 : 严格轮换法 (Strict Alternation) while (TRUE) { while (TRUE) { while (turn!= 0) / * loop * / ; while (turn!= 1) cr itical region( ); cr itical region( ); / * loop * /; tur n = 1; tur n = 0; noncr itical region( ); noncr itical region( ); } } (a) (b) 优点 :turn 已不不是互斥资源, 不不存在竞态条件 此类变量量称为 spin lock ( 自旋锁 ) 缺点 :1, 死循环 (busy-waiting, 忙等 ); 2, 过于严格 ;3, 违背条件 3

40 进程间通信 实现互斥 忙等 (Busy Waiting) Peterson 的解法 (1981) #define FALSE 0 #define TRUE 1 #define N 2 / * number of processes * / int turn; / * whose turn is it? * / int interested[n]; / * all values initially 0 (FALSE) * /

41 进程间通信 实现互斥 忙等 (Busy Waiting) Peterson 的解法 (1981) void enter region(int process); { / * process is 0 or 1 * / int other; / * number of the other process * / } other = 1 process; / * the opposite of process * / interested[process] = TRUE; / * show that you are interested * / tur n = process; / * set flag * / while (turn == process && interested[other] == TRUE) / * null statement * /; void leave region(int process) { / * process: who is leaving * / interested[process] = FALSE; } / * indicate departure from critical region * /

42 进程间通信实现互斥 忙等 (Busy Waiting) TSL 指令 TSL RX, LOCK Test and Set Lock (1) 从 lock 地址读取 一个值,(2) 并将另 一个 非0 值存 入lock 这两个操作不不可以被分割 ( 要么都执 行行, 要么都不不执 行行 )

43 进程间通信 实现互斥 忙等 (Busy Waiting) enter region: TSL REGISTER,LOCK copy lock to register and set lock to 1 CMP REGISTER,#0 was lock zero? JNE enter region if it was not zero, lock was set, so loop RET retur n to caller; critical region entered leave region: MOVE LOCK,#0 RET store a 0 in lock retur n to caller

44 进程间通信 实现互斥 忙等 (Busy Waiting) XCHG 指令 enter region: MOVE REGISTER,#1 XCHG REGISTER,LOCK CMP REGISTER,#0 JNE enter region RET put a 1 in the register swap the contents of the register and lock var iable was lock zero? if it was non zero, lock was set, so loop retur n to caller; critical region entered leave region: MOVE LOCK,#0 RET store a 0 in lock retur n to caller Figure Entering and leaving a critical region using the XCHG instruction.

45 进程间通信 回顾 一下 老老的 方案 屏蔽中断 : 很不不灵活 有问题的 方案 锁变量量 : 出现运 行行错误 严格轮换法 : 违背条件 3 没有问题但低效的 方案 : Peterson 方案,TSL 或 XCHG 的实现 低效的原因 :Busy waiting ( 忙等 死循环 )

46 进程间通信 睡眠与唤醒 (Sleep and Wakeup) sleep, wakeup 系统调 用 sleep 调 用 sleep 之后, 进程变为阻塞状态 wakeup 调 用 wakeup(sb), sb 进程进 入就绪状态

47 进程间通信 生产者 - 消费者问题 两个进程共享同 一个缓存 生产者 : 一个进程 生产数据, 放 入缓存中 消费者 : 一个进程消费数据, 从缓存中取数据 要求 : 缓存满时, 生产者不不能再 生产数据 缓存空时, 消费者不不能再消费数据

48 进程间通信 生产者 - 消费者问题 #define N 100 / * number of slots in the buffer * / int count = 0; / * number of items in the buffer * / void producer(void) { int item; } while (TRUE) { / * repeat forever * / item = produce item( ); / * generate next item * / if (count == N) sleep( ); / * if buffer is full, go to sleep * / inser t item(item); / * put item in buffer * / count = count + 1; / * increment count of items in buffer * / if (count == 1) wakeup(consumer); / * was buffer empty? * / }

49 进程间通信 生产者 - 消费者问题 void consumer(void) { int item; } while (TRUE) { / * repeat forever * / if (count == 0) sleep( ); / * if buffer is empty, got to sleep * / item = remove item( ); / * take item out of buffer * / count = count 1; / * decrement count of items in buffer * / if (count == N 1) wakeup(producer); / * was buffer full? * / consume item(item); / * pr int item * / }

50 进程间通信 生产者 - 消费者问题 问题 :count 也是互斥资源 void producer(void) { int item; void consumer(void) { int item; } while (TRUE) { item = produce item( ); if (count == N) sleep( ); 2 inser t item(item); count = count + 1; if (count == 1) wakeup(consumer); } } 1 3 Sleep forever while (TRUE) { if (count == 0) sleep( ); item = remove item( ); count = count 1; if (count == N 1) wakeup(producer); consume item(item); } 如果是多个 生产者和多个消费者, 则问题更更难

51 进程间通信 信号量量 (semaphore) 解决之前的问题 : 将前 面的 count 值与互斥资源的操作合在 一起, 形成 一种 原 子操作 ( 不不可被拆分的操作 ) 信号量量可表示为某互斥资源的可使 用个数 对消费者 而 言, 信号量量为 count 值 对 生产者 而 言, 信号量量为 (N-count) 信号量量的值可以为 0, 也可以为 一个常数 信号量量的操作 :down(semaphore), up(semaphore)

52 进程间通信信号量量 (semaphore) down(s),or P(s) (Proberen) if s >0, then s=s-1; if s==0, then sleep(); up(s), or V(s) (Verhogen) if s==0 && 有 sleep 进程 then 将其中 一个进程唤醒 if s==0 && 没有 sleep 进程,then s=s+1 if s>0, then s=s+1 < 原 子操作, 不不可分割 >

53 进程间通信 续 : 临界区 semaphore s=1; enter_region() { down(s); } leave_region() { up(s); }

54 进程间通信 续 : 生产者 - 消费者问题 #define N 100 / * number of slots in the buffer * / typedef int semaphore; / * semaphores are a special kind of int * / semaphore mutex = 1; / * controls access to critical region * / semaphore empty = N; / * counts empty buffer slots * / semaphore full = 0; / * counts full buffer slots * / void producer(void) { int item; } while (TRUE) { / * TRUE is the constant 1 * / item = produce item( ); / * generate something to put in buffer * / 1 down(&empty); / * decrement empty count * / down(&mutex); 2 / * enter critical region * / inser t item(item); / * put new item in buffer * / 1 up(&mutex); / * leave critical region * / up(&full); / * increment count of full slots * / } 2

55 进程间通信 续 : 生产者 - 消费者问题 void consumer(void) { int item; } while (TRUE) { / * infinite loop * / down(&full); 1 / * decrement full count * / 2 down(&mutex); / * enter critical region * / item = remove item( ); / * take item from buffer * / up(&mutex); 1 / * leave critical region * / 2 up(&empty); / * increment count of empty slots * / consume item(item); / * do something with the item * / }

56 大作业 : 生产者与消费者问题 作业 : 用Java 程序模拟 生产者与消费者问题 提交 文档 源代码 可执 行行程序 另外, 调整 1 与 2 之间的顺序, 在 文档中说明运 行行结果有什什么不不同 提交形式 : 使 用群功能中的 作业, 在相应地址提交 文件命名 : 学号 + 姓名 + 版本号 ( 提交 文件 无法撤消 ) 提交截 止时间 : 考试之前 ( 第 16 周 )

57 进程间通信 信号量量的两种 用途 互斥 (mutual exclusion) 多个进程争夺同 一个资源使 用权, 如 mutex, 如 文件的读写 同步 (synchronization) 多个进程相互协作, 保证任务按秩序完成, 如 full, empty

58 进程间通信 管程 (Monitor) 想正确使 用信号量量, 并不不容易易 Hansen (1973), Hoare (1974) 提出了了更更 高层的原语 : monitor ( 管程 ) 管程是什什么? 管程是 一个模块, 其中包含 一组过程 变量量和数据结构 管程可以被进程所调 用, 但管程内的数据不不可以被直接操 作

59 进程间通信 管程 (Monitor) monitor example integer i; condition c; procedure producer( );. end; procedure consumer( );... end; end monitor;

60 管程的 一个重要特征 : 进程间通信 管程 (Monitor) 无论何时, 管程内只允许 一个过程是活跃的 ( 就绪或运 行行 ) 如果已经有 一个活跃的过程, 那么, 加 入新的过程时, 新加 入的过程阻塞, 直 至其它过程离开管程 如果没有任何活跃的过程, 那么, 新的过程可以直接加 入 好处 : 很容易易实现互斥 (Mutex) 问题 : 如何实现同步? 使 用 condition variable, wait(), signal()

61 进程间通信 管程 (Monitor) conditional variable 类似信号量量 相关操作 wait(c) 类似 down() signal(c) 类似 up()

62 进程间通信管程 (Monitor) condition variable c, wait(c), signal(c) 的不不同点 condition variable 本身不不绑定资源数 目, 取 而代之, procedure 对资源数 目进 行行判断 wait(c) 不不判断 c 的 大 小, 直接将被调 用进程阻塞 由于该 procedure 阻塞, 可将另 一被阻塞进程激活 signal(c) 不不判断 c 的 大 小, 可以直接将之前被 wait(c) 阻塞的进程激活

63 进程间通信 管程 (Monitor) 但是, 问题来了了, 由于管程中, 同时只有 一个激活的进程, 调 用 signal(c) 时, 调 用 signal(c) 的 procedure 和 wait(c) 可能同时处于激活状态 解决 方案 一 :Hoare 方案 wait(c) 对应进程激活,signal(c) 对应进程阻塞 解决 方案 二 :Hansen 方案 增加约束 :signal(c) 语句句仅能出现在 procedure 的最后 一 行行

64 进程间通信 管程 (Monitor) monitor ProducerConsumer condition full, empty; integer count; procedure insert(item: integer); begin if count = N then wait(full); insert item(item); count := count + 1; if count =1then signal(empty) end; function remove: integer; begin if count =0then wait(empty); remove = remove item; count := count 1; if count = N 1 then signal(full) end; count := 0; end monitor; procedure producer; begin while true do begin item = produce item; ProducerConsumer.insert(item) end end; procedure consumer; begin while true do begin item = ProducerConsumer.remove; consume item(item) end end;

65 进程间通信 管程 (Monitor) 管程在 Java 中的近似实现 synchronized method 没有 conditional variable wait() 和 notify() == sleep() 和 wakeup(), 但仅 限于 synchronized method

66 进程间通信 管程 (Monitor) public class ProducerConsumer { static final int N = 100; // constant giving the buffer size static producer p = new producer( ); // instantiate a new producer thread static consumer c = new consumer( ); // instantiate a new consumer thread static our monitor mon = new our monitor( ); // instantiate a new monitor public static void main(string args[ ]) { p.star t( ); // star t the producer thread c.star t( ); // star t the consumer thread } static class producer extends Thread {

67 static class producer extends Thread { public void run( ) { // run method contains the thread code int item; while (true) { // producer loop item = produce item( ); mon.inser t(item); } } pr ivate int produce item( ) {... } // actually produce } static class consumer extends Thread { public void run( ) { run method contains the thread code int item; while (true) { // consumer loop item = mon.remove( ); consume item (item); } } pr ivate void consume item(int item) {... } // actually consume }

68 static class our monitor { // this is a monitor pr ivate int buffer[ ] = new int[n]; pr ivate int count = 0, lo = 0, hi = 0; // counters and indices } public synchronized void insert(int val) { if (count == N) go to sleep( ); // if the buffer is full, go to sleep buffer [hi] = val; // inser t an item into the buffer hi = (hi + 1) % N; // slot to place next item in count = count + 1; // one more item in the buffer now if (count == 1) notify( ); // if consumer was sleeping, wake it up } public synchronized int remove( ) { int val; if (count == 0) go to sleep( ); // if the buffer is empty, go to sleep val = buffer [lo]; // fetch an item from the buffer lo = (lo + 1) % N; // slot to fetch next item from count = count 1; // one few items in the buffer if (count == N 1) notify( ); // if producer was sleeping, wake it up retur n val; } pr ivate void go to sleep( ) { try{wait( );} catch(interr uptedexception exc) {};}

69 进程间通信 管程 (Monitor) 管程的优点 : 相对信号量量, 更更不不易易出错 管程的缺点 非系统调 用, 而是语 言层次的接 口 不不能完成两台机器器之间的进程通信

70 进程间通信消息传递 (Message Passing) 系统调 用 : send(destination, &message) receive(source, &message) 它考虑了了很多前述机制没考虑或不不需考虑的问题 : 消息丢失 重传 重复消息 身份认证 效率相对更更低, 怎样优化?

71 进程间通信消息传递 (Message Passing) 实现消息传递的 几种 方式 使 用数据结构 mailbox 来进 行行缓存 完全不不使 用缓存 send 执 行行时, 阻塞, 直 至receive 执 行行 receive 执 行行时, 阻塞, 直 至send 执 行行 这种模式称之为 rendezvous ( 会合 )

72 进程间通信 消息传递 (Message Passing) #define N 100 void producer(void) { int item; message m; } while (TRUE) { item = produce item( ); receive(consumer, &m); build message(&m, item); send(consumer, &m); } } void consumer(void) { int item, i; message m; for (i = 0; i < N; i++) send(producer, &m) while (TRUE) { receive(producer, &m); item = extract item(&m); send(producer, &m); consume item(item); }

73 调度 (Scheduling) 当多个进程竞争使 用 CPU, 怎么办? CPU 使 用不不存在竞争条件问题 但有些进程对 CPU 使 用会有特殊的要求 如批处理理 或 GUI 等 进程切换也不不能过于频繁

74 调度 (Scheduling) 进程的 行行为特征 计算密集型 (compute-bound) (a) Long CPU burst Short CPU burst Waiting for I/O (b) IO 密集型 (IO-bound)

75 调度 (Scheduling) 何时需要调度 创建进程 如 : 父进程和 子进程中, 哪个设为运 行行状态? 进程退出 进程阻塞 I/O 中断 基于时钟的调度 非抢占式调度 (nonpreemtive) 抢占式调度 (preemtive)

76 调度 (Scheduling) 调度算法的分类 批处理理 交互式 实时

77 调度 (Scheduling) 算法 目标 All systems Fair ness - giving each process a fair share of the CPU Policy enforcement - seeing that stated policy is carried out Balance - keeping all parts of the system busy Batch systems Throughput - maximize jobs per hour Turnaround time - minimize time between submission and termination CPU utilization - keep the CPU busy all the time Interactive systems Response time - respond to requests quickly Propor tionality - meet users expectations Real-time systems Meeting deadlines - avoid losing data Predictability - avoid quality degradation in multimedia systems

78 调度 (Scheduling) 批处理理系统中的调度 先来先服务 (First-Come, First Served) 易易懂, 但 : 如果第 一个作业是 长作业?

79 调度 (Scheduling) 批处理理系统中的调度 最短作业优先 (Shortest Job First) A B C D B C D A 如果 4 个作业同时到达, 则平均周转时间为 mean turnaround time time a, the second a (4a + 3b + 2c + d)/4.

80 调度 (Scheduling) 批处理理系统中的调度 最短剩余时间调度 (Shortest Remaining Time Next) tip: 最短作业优先的抢占式版本 : 如果新的进程需 更更短时间, 则运 行行新的进程

81 调度 (Scheduling) 交互式系统中的调度 轮转调度 (Round-Robin Scheduling) Current process Next process Current process B F D G A F D G A B 每个进程被分配 一个时间 片段, 简称时间 片 (quantum) 当从 一个进程切换到另 一个进程时, 称这个过程为进程切换 (process switch) 或上下 文切换 (Context Switch)

82 调度 (Scheduling) 交互式系统中的调度 如果设计时间 片的 长短? 进程切换 (Process Switch) 需要额外时间 如果时间 片太短, 则切换时占据时间 比例例较 大 如果时间 片太 长, 则后 面的进程等待时间较 长 一般情况下, 时间 片 长度设置为 20~50msec

83 调度 (Scheduling) 交互式系统中的调度 优先级调度 (Priority scheduling) 每个进程都有优先级 大 小, 挑选最 高优先级的进程 运 行行 例例 : 家 用 PC 中, 邮件进程与视频播放进程

84 调度 (Scheduling) 交互式系统中的调度 优先级调度 (Priority scheduling) 如何设置优先级 : 静态设置 军队中, 根据军衔 商 用计算中 心, 根据收费价格 Unix 中,nice 命令 动态设置 针对 I/O 密集型的进程

85 调度 (Scheduling) 交互式系统中的调度 Queue headers Runnable processes Priority 4 (Highest priority) Priority 3 Priority 2 Priority 1 (Lowest priority)

86 调度 (Scheduling) 交互式系统中的调度 多级队列列 (Multiple Queues) 如果进程切换代价 高, 且 I/O 密集型和 CPU 密集型进程混杂 则多级队列列, 每个队列列中, 进程占有的时间 片 长度 不不 一样

87 调度 (Scheduling) 交互式系统中的调度 最短进程优先 (Shortest Process Next) 作 用类似于最短作业优先 把每个命令当成 一个独 立的进程 怎样预估命令的占据时间? at 0 + (1 a)t 1 T 0, T 0 /2 + T 1 /2, T 0 /4 + T 1 /4 + T 2 /2, T 0 /8 + T 1 /8 + T 2 /4 + T 3 /2

88 调度 (Scheduling) 交互式系统中的调度 保证调度 (Guaranteed Scheduling) 彩票调度 (Lottery Scheduling) 公平分享调度 (Fair-Share Scheduling)

89 调度 (Scheduling) 实时系统中的调度 硬实时 必须满 足的绝对的截 止时间 软实时 偶尔会错过截 止时间, 尽管不不希望如此

90 经典 IPC 问题 哲学家就餐问题 死锁问题 (DeadLocks) 与饿死问题 (Starvation)

91 经典 IPC 问题 哲学家就餐问题 #define N 5 / * number of philosophers * / void philosopher(int i) / * i: philosopher number, from 0 to 4 * / { while (TRUE) { think( ); / * philosopher is thinking * / take fork(i); / * take left for k * / take fork((i+1) % N); / * take right for k; % is modulo operator * / eat( ); / * yum-yum, spaghetti * / put fork(i); / * put left for k back on the table * / put fork((i+1) % N); / * put right for k back on the table * / } } Figure A nonsolution to the dining philosophers problem.

92 经典 IPC 问题 哲学家就餐问题 #define N 5 #define LEFT (i+n 1)%N #define RIGHT (i+1)%n #define THINKING 0 #define HUNGRY 1 #define EATING 2 typedef int semaphore; int state[n]; semaphore mutex = 1; semaphore s[n]; void philosopher(int i) { while (TRUE) { think( ); take forks(i); eat( ); put forks(i); } }

93 经典 IPC 问题 哲学家就餐问题 void take forks(int i) { down(&mutex); state[i] = HUNGRY; test(i); up(&mutex); down(&s[i]); } void put forks(i) { down(&mutex); state[i] = THINKING; test(left); test(right); up(&mutex); } void test(i) / * i: philosopher number, from 0 to N 1 * / { if (state[i] == HUNGRY && state[left]!= EATING && state[right]!= EATING) { state[i] = EATING; up(&s[i]); } }

94 经典 IPC 问题 读者 写者问题 有多个进程同时对 一个 文件或数据库进 行行读写, 有如 下规则 可以同时存在多个读者 也可以同时存在 一个写者 但在有写者的情况下, 不不可有其它的读者或写者

95 经典 IPC 问题 读者 写者问题 typedef int semaphore; / * use your imagination * / semaphore mutex = 1; / * controls access to rc * / semaphore db = 1; / * controls access to the database * / int rc = 0; / * # of processes reading or wanting to * /

96 经典 IPC 问题 读者 写者问题 void reader(void) { while (TRUE) { down(&mutex); rc = rc + 1; if (rc == 1) down(&db); up(&mutex); read data base( ); down(&mutex); rc = rc 1; if (rc == 0) up(&db); up(&mutex); use data read( ); } } void writer(void) { while (TRUE) { think up data( ); down(&db); wr ite data base( ); up(&db); } }

97 死锁问题 (Deadlocks) 资源的类型 可抢占资源 (preemptable resource) 不不可抢占资源 (nonpreemptable resource)

98 死锁问题 (Deadlocks) 如果进程 A lock 资源 R1, 进程 B lock 资源 R2, 与此 同时,A 尝试 lock R2, B 尝试 lock R1, 则 A 和 B 都处 于阻塞状态, 这种情况可称为死锁 下 面是 一种正式的定义 : A set of processes is deadlocked if each process in the set is waiting for an event that only another process in the set can cause.

99 typedef int semaphore; semaphore resource 1; semaphore resource 1; semaphore resource 2; semaphore resource 2; void process A(void) { void process A(void) { down(&resource 1); down(&resource 1); down(&resource 2); down(&resource 2); use both resources( ); use both resources( ); up(&resource 2); up(&resource 2); up(&resource 1); up(&resource 1); } } void process B(void) { void process B(void) { down(&resource 1); down(&resource 2); down(&resource 2); down(&resource 1); use both resources( ); use both resources( ); up(&resource 2); up(&resource 1); up(&resource 1); up(&resource 2); } } (a) (b) Figure 6-2. (a) Deadlock-free code. (b) Code with a potential deadlock.

100 死锁问题 引起死锁的四个必要条件 1. 互斥条件 2. 占有和等待条件 3. 不不可抢占条件 4. 环路路等待条件

101 死锁问题 死锁建模 A S D T U R B C (a) (b) (c) Figure 6-3. Resource allocation graphs. (a) Holding a resource. (b) Requesting a resource. (c) Deadlock.

102 死锁问题 死锁建模 A Request R Request S Release R Release S (a) B Request S Request T Release S Release T (b) C Request T Request R Release T Release R (c) 1. A requests R 2. B requests S 3. C requests T 4. A requests S 5. B requests T 6. C requests R deadlock A R B S C T A R B S C T A R B S C T (d) (e) (f) (g) A B C A B C A B C R S T R S T R S T (h) (i)

103 死锁问题 死锁建模 A Request R Request S Release R Release S B Request S Request T Release S Release T C Request T Request R Release T Release R 1. A requests R 2. C requests T 3. A requests S 4. C requests R 5. A releases R 6. A releases S no deadlock A R (a) B S C T A R (b) B S C T A R B S (c) C T (k) (l) (m) (n) A B C A B C A B C R S T R S T R S T (o) (p) (q)

104 死锁问题 鸵 鸟算法 (Ostrich Algorithm) 把头埋在沙 子 里里, 假装没这个问题

105 死锁问题 死锁检测 (Deadlock Detection) 如果每种类型的资源只有 一个 : R A B C S D T E D T E F U V U V W L =[R, A, S ]. G (a) G (b) L =[B, T, E, V, G, U, D].

106 死锁问题 死锁检测 (Deadlock Detection) 如果每种类型的资源不不 止 一个 : 定义 : 现有资源向量量 E (existing resource vector) 可 用资源向量量 A (available resource vector) 当前分配矩阵 C (current allocation matrix) 请求矩阵 R ( request matrix) n Σ C ij + A j = E j i=1 C 11 C 21 C n1 Resources in existence (E 1, E 2, E 3,, E m ) Current allocation matrix C 12 C 22 C n2 C 13 C 23 C n3 C 1m C 2m C nm Row n is current allocation to process n R 11 R 21 R n1 Resources available (A 1, A 2, A 3,, A m ) Request matrix R 12 R 22 R n2 R 13 R 23 R n3 R 1m R 2m R nm Row 2 is what process 2 needs

107 死锁问题死锁检测 (Deadlock Detection) 如果每种类型的资源不不 止 一个 : 检测算法 : 1. 寻找 一个没有标记的进程 Pi, 其对应的第 i 行行的 R 向量量 小于或等于 A, (Ri<=A) 2. 如果找到该进程,A=A+Ci, 标记该进程,goto step 1 3. 如果没有找到该进程, 程序终 止 终 止后, 如果存在未标记的进程, 则死锁

108 死锁问题 死锁检测 (Deadlock Detection) Tape drives Plotters Scanners E = ( ) Blu-rays Tape drives Plotters Scanners A = ( ) Blu-rays Current allocation matrix Request matrix C = R = A = ( ) A = ( ) no deadlock uation of Fig.

109 死锁问题 死锁恢复 (Recovery from Deadlock) 利利 用抢占恢复 (Recovery through Preemption) 利利 用回滚恢复 (Recovery through Rollback) 通过杀死进程恢复 (Recovery through Killing Processes)

110 死锁问题 死锁避免 (Deadlock Avoidance) 资源轨迹图 Printer I 8 B u (Both processes finished) I 7 I 6 t Plotter I 5 r s p q I 1 I 2 I 3 I 4 A Printer Plotter

111 死锁问题死锁避免 (Deadlock Avoidance) 安全状态和不不安全状态 Has Max Has Max Has Max Has Max Has Max A 3 9 A 3 9 A 3 9 A 3 9 A 3 9 B 2 4 B 4 4 B 0 B 0 B 0 C 2 7 C 2 7 C 2 7 C 7 7 C 0 Free: 3 (a) Free: 1 (b) Free: 5 (c) Free: 0 (d) Free: 7 (e) Figure 6-9. Demonstration that the state in (a) is safe. A B C Has Max Has Max Has Max Has Max A B C A B C A B C Free: 3 (a) Free: 2 (b) Free: 0 (c) Free: 4 (d)

112 死锁问题 单个资源的银 行行家算法 (Banker s Algorithm) Has Max Has Max Has Max A 0 6 A 1 6 A 1 6 B 0 5 B 1 5 B 2 5 C 0 4 C 2 4 C 2 4 D 0 7 D 4 7 D 4 7 Free: 10 Free: 2 Free: 1 (a) (b) (c) Figure Three resource allocation states: (a) Safe. (b) Safe. (c) Unsafe.

113 死锁问题 多个资源的银 行行家算法 (Banker s Algorithm) Process Tape drives Plotters Printers Blu-rays A B C Process Tape drives Plotters Printers Blu-rays A B C E = (6342) P = (5322) A = (1020) D E Resources assigned D E Resources still assigned

114 死锁问题 死锁预防 (Deadlock Prevention) 死锁避免是难以实现的!

115 死锁问题 死锁预防 (Deadlock Prevention) 破坏互斥条件 破坏占有和等待条件 破坏不不可抢占条件 破坏环路路等待条件 Condition Mutual exclusion Hold and wait No preemption Circular wait Approach Spool ev erything Request all resources initially Take resources away Order resources numer ically

116 死锁问题 两阶段锁 (Two-Phase Locking) 第 一阶段, 尝试给所需资源上锁 如果成功, 则进 入第 二阶段 如果不不成功, 释放所有锁 第 二阶段, 使 用资源, 结束后, 释放所有锁

117 作业 2.5, 2.9, 2.18, 2.45, 2.55, 2.54, , 6.14, 6.22, 6.26

北 京 奧 運 會 上 倒 舉 中 共 國 旗 的 小 男 孩

北 京 奧 運 會 上 倒 舉 中 共 國 旗 的 小 男 孩 北 京 奧 運 會 上 倒 舉 中 共 國 旗 的 小 男 孩 黃 花 崗 雜 誌 2008 年 第 3 期 總 第 26 期 ( 增 刊 ) Huang Hua Gang Magazine OCTOBER 15, 2008 辛 亥 元 勛 烈 士 吳 祿 貞 編 者 前 言 百 年 辛 亥 專 欄 孫 中 山 和 三 民 主 義 從 林 肯 民 權 主 義 到 孫 文 三 民 主 義 辛 灝 年

More information

06 01 action JavaScript action jquery jquery AJAX CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS b

06 01 action JavaScript action jquery jquery AJAX CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS b 06 01 action JavaScript action jquery jquery AJAX 04 4-1 CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS background-color camel-cased DOM backgroundcolor.css()

More information

提纲 1 2 OS Examples for 3

提纲 1 2 OS Examples for 3 第 4 章 Threads2( 线程 2) 中国科学技术大学计算机学院 October 28, 2009 提纲 1 2 OS Examples for 3 Outline 1 2 OS Examples for 3 Windows XP Threads I An Windows XP application runs as a seperate process, and each process may

More information

ebook

ebook 3 3 3.1 3.1.1 ( ) 90 3 1966 B e r n s t e i n P ( i ) R ( i ) W ( i P ( i P ( j ) 1) R( i) W( j)=φ 2) W( i) R( j)=φ 3) W( i) W( j)=φ 3.1.2 ( p r o c e s s ) 91 Wi n d o w s Process Control Bl o c k P C

More information

提纲 Classical Problems of Synchronization 1 Classical Problems of Synchronization 2 3 4

提纲 Classical Problems of Synchronization 1 Classical Problems of Synchronization 2 3 4 第 6 章 Processe Synchronization2( 进程同步 2) 中国科学技术大学计算机学院 2009 年 10 月 28 日 提纲 Classical Problems of Synchronization 1 Classical Problems of Synchronization 2 3 4 Outline Classical Problems of Synchronization

More information

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM Oracle Solaris Studio 12.2 DLight 2010 9 2 2 3 DLight 3 3 6 13 CPU 16 18 21 I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AMP Apache MySQL

More information

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1 21 , 7, Windows,,,, : 010-62782989 13501256678 13801310933,,,, ;,, ( CIP) /,,. : ;, 2005. 11 ( 21 ) ISBN 7-81082 - 634-4... - : -. TP316-44 CIP ( 2005) 123583 : : : : 100084 : 010-62776969 : 100044 : 010-51686414

More information

投影片 1

投影片 1 9 1 9-1 Windows XP Windows Server 2003 Mac OS Linux, 都 (OS, Operating System ) 2 3 , 來, 行 3 理 行 4 ,, (UI, User Interface), 滑, 令 列 (CLI, Command-Line Interface) (GUI, Graphical User Interface) 2 5 令 列,

More information

Microsoft PowerPoint - OS5.ppt

Microsoft PowerPoint - OS5.ppt Processes Process Concept Process Scheduling Operations on Processes Cooperating Processes Interprocess Communication Communication in Client-Server Systems Oct-03 1 Process Concept An operating system

More information

Objecttives To develop a description of deadlocks, which prevent sets of concurrent processes from completing their tasks To present a number of diffe

Objecttives To develop a description of deadlocks, which prevent sets of concurrent processes from completing their tasks To present a number of diffe 操作系统原理与设计 第 7 章 Deadlocks( 死锁 ) 陈香兰 中国科学技术大学计算机学院 April 16, 2014 陈香兰 ( 中国科学技术大学计算机学院 ) 操作系统原理与设计 April 16, 2014 1 / 40 Objecttives To develop a description of deadlocks, which prevent sets of concurrent

More information

C/C++ - 字符输入输出和字符确认

C/C++ - 字符输入输出和字符确认 C/C++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

C/C++程序设计 - 字符串与格式化输入/输出

C/C++程序设计 - 字符串与格式化输入/输出 C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int

More information

untitled

untitled Work Managers 什 Work Managers? WebLogic Server 9.x 行 (thread) 理 thread pool 數量 立 execute queues 來 量 理 thread count, thread priority 參數 理 thread pool 數量? WebLogic Server 9.x 理 行 (thread) (self-tuning) 句

More information

ebook 132-6

ebook 132-6 6 SQL Server Windows NT Windows 2000 6.1 Enterprise Manager SQL Server Enterprise Manager( ) (Microsoft Management C o n s o l e M M C ) Enterprise Manager SQL Server Enterprise Manager 6.1.1 Enterprise

More information

穨control.PDF

穨control.PDF TCP congestion control yhmiu Outline Congestion control algorithms Purpose of RFC2581 Purpose of RFC2582 TCP SS-DR 1998 TCP Extensions RFC1072 1988 SACK RFC2018 1996 FACK 1996 Rate-Halving 1997 OldTahoe

More information

Microsoft PowerPoint - ch6 [相容模式]

Microsoft PowerPoint - ch6 [相容模式] UiBinder wzyang@asia.edu.tw UiBinder Java GWT UiBinder XML UI i18n (widget) 1 2 UiBinder HelloWidget.ui.xml: UI HelloWidgetBinder HelloWidget.java XML UI Owner class ( Composite ) UI XML UiBinder: Owner

More information

Windows XP

Windows XP Windows XP What is Windows XP Windows is an Operating System An Operating System is the program that controls the hardware of your computer, and gives you an interface that allows you and other programs

More information

C/C++ - 函数

C/C++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

Oracle 4

Oracle 4 Oracle 4 01 04 Oracle 07 Oracle Oracle Instance Oracle Instance Oracle Instance Oracle Database Oracle Database Instance Parameter File Pfile Instance Instance Instance Instance Oracle Instance System

More information

WWW PHP

WWW PHP WWW PHP 2003 1 2 function function_name (parameter 1, parameter 2, parameter n ) statement list function_name sin, Sin, SIN parameter 1, parameter 2, parameter n 0 1 1 PHP HTML 3 function strcat ($left,

More information

C/C++ - 文件IO

C/C++ - 文件IO C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;

More information

1 o o o CPU o o o o o SQL Server 2005 o CPU o o o o o SQL Server o Microsoft SQL Server 2005

1 o o o CPU o o o o o SQL Server 2005 o CPU o o o o o SQL Server o Microsoft SQL Server 2005 1 o o o CPU o o o o o SQL Server 2005 o CPU o o o o o SQL Server o Microsoft SQL Server 2005 1 1...3 2...20 3...28 4...41 5 Windows SQL Server...47 Microsoft SQL Server 2005 DBSRV1 Microsoft SQL Server

More information

2/80 2

2/80 2 2/80 2 3/80 3 DSP2400 is a high performance Digital Signal Processor (DSP) designed and developed by author s laboratory. It is designed for multimedia and wireless application. To develop application

More information

Chapter 9: Objects and Classes

Chapter 9: Objects and Classes Java application Java main applet Web applet Runnable Thread CPU Thread 1 Thread 2 Thread 3 CUP Thread 1 Thread 2 Thread 3 ,,. (new) Thread (runnable) start( ) CPU (running) run ( ) blocked CPU sleep(

More information

Microsoft Word - template.doc

Microsoft Word - template.doc HGC efax Service User Guide I. Getting Started Page 1 II. Fax Forward Page 2 4 III. Web Viewing Page 5 7 IV. General Management Page 8 12 V. Help Desk Page 13 VI. Logout Page 13 Page 0 I. Getting Started

More information

Microsoft PowerPoint - os_4.ppt

Microsoft PowerPoint - os_4.ppt 行 程 資 科 系 林 偉 川 行 程 概 念 行 程 與 程 式 主 要 的 不 同 點 : 程 式 是 被 放 在 外 部 的 儲 存 裝 置 如 磁 碟 上, 而 行 程 則 被 放 在 記 憶 體 中 程 式 在 儲 存 裝 置 中 是 靜 態 的, 而 行 程 在 記 憶 體 中 是 動 態 的, 它 會 隨 著 一 些 事 件 的 發 生 而 產 生 相 對 的 改 變 行 程, 就 是

More information

1505.indd

1505.indd 上 海 市 孙 中 山 宋 庆 龄 文 物 管 理 委 员 会 上 海 宋 庆 龄 研 究 会 主 办 2015.05 总 第 148 期 图 片 新 闻 2015 年 9 月 22 日, 由 上 海 孙 中 山 故 居 纪 念 馆 台 湾 辅 仁 大 学 和 台 湾 图 书 馆 联 合 举 办 的 世 纪 姻 缘 纪 念 孙 中 山 先 生 逝 世 九 十 周 年 及 其 革 命 历 程 特 展

More information

高中英文科教師甄試心得

高中英文科教師甄試心得 高 中 英 文 科 教 師 甄 試 心 得 英 語 學 系 碩 士 班 林 俊 呈 高 雄 市 立 高 雄 高 級 中 學 今 年 第 一 次 參 加 教 師 甄 試, 能 夠 在 尚 未 服 兵 役 前 便 考 上 高 雄 市 立 高 雄 高 級 中 學 專 任 教 師, 自 己 覺 得 很 意 外, 也 很 幸 運 考 上 後 不 久 在 與 雄 中 校 長 的 會 談 中, 校 長 的 一 句

More information

C/C++ 语言 - 循环

C/C++ 语言 - 循环 C/C++ Table of contents 7. 1. 2. while 3. 4. 5. for 6. 8. (do while) 9. 10. (nested loop) 11. 12. 13. 1 // summing.c: # include int main ( void ) { long num ; long sum = 0L; int status ; printf

More information

ebook 132-2

ebook 132-2 2 SQL Server 7.0 SQL Server SQL Server 7 SQL Server 7 5 2.1 SQL Server 7 SQL Server 7 SQL Server SQL Server SQL Server 2.1.1 SQL Server Windows NT/2000 Windows 95/98 ( r a n d o m access memory R A M )

More information

PowerPoint Presentation

PowerPoint Presentation TOEFL Practice Online User Guide Revised September 2009 In This Guide General Tips for Using TOEFL Practice Online Directions for New Users Directions for Returning Users 2 General Tips To use TOEFL Practice

More information

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING 前言 - Andrew Payne 目录 1 2 Firefly Basics 3 COMPONENT TOOLBOX 目录 4 RESOURCES 致谢

More information

A Preliminary Implementation of Linux Kernel Virus and Process Hiding

A Preliminary Implementation of Linux Kernel Virus and Process Hiding 邵 俊 儒 翁 健 吉 妍 年 月 日 学 号 学 号 学 号 摘 要 结 合 课 堂 知 识 我 们 设 计 了 一 个 内 核 病 毒 该 病 毒 同 时 具 有 木 马 的 自 动 性 的 隐 蔽 性 和 蠕 虫 的 感 染 能 力 该 病 毒 获 得 权 限 后 会 自 动 将 自 身 加 入 内 核 模 块 中 劫 持 的 系 统 调 用 并 通 过 简 单 的 方 法 实 现 自 身 的

More information

软件测试(TA07)第一学期考试

软件测试(TA07)第一学期考试 一 判 断 题 ( 每 题 1 分, 正 确 的, 错 误 的,20 道 ) 1. 软 件 测 试 按 照 测 试 过 程 分 类 为 黑 盒 白 盒 测 试 ( ) 2. 在 设 计 测 试 用 例 时, 应 包 括 合 理 的 输 入 条 件 和 不 合 理 的 输 入 条 件 ( ) 3. 集 成 测 试 计 划 在 需 求 分 析 阶 段 末 提 交 ( ) 4. 单 元 测 试 属 于 动

More information

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco Windows RTEMS 1 Danilliu MMI TCP/IP 80486 QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos ecos Email www.rtems.com RTEMS ecos RTEMS RTEMS Windows

More information

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡 Tips of the Week 课 堂 上 的 英 语 习 语 教 学 ( 二 ) 2015-04-19 吴 倩 MarriottCHEI 大 家 好! 欢 迎 来 到 Tips of the Week! 这 周 我 想 和 老 师 们 分 享 另 外 两 个 课 堂 上 可 以 开 展 的 英 语 习 语 教 学 活 动 其 中 一 个 活 动 是 一 个 充 满 趣 味 的 游 戏, 另 外

More information

BC04 Module_antenna__ doc

BC04 Module_antenna__ doc http://www.infobluetooth.com TEL:+86-23-68798999 Fax: +86-23-68889515 Page 1 of 10 http://www.infobluetooth.com TEL:+86-23-68798999 Fax: +86-23-68889515 Page 2 of 10 http://www.infobluetooth.com TEL:+86-23-68798999

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

C o n t e n t s...7... 15 1. Acceptance... 17 2. Allow Love... 19 3. Apologize... 21 4. Archangel Metatron... 23 5. Archangel Michael... 25 6. Ask for

C o n t e n t s...7... 15 1. Acceptance... 17 2. Allow Love... 19 3. Apologize... 21 4. Archangel Metatron... 23 5. Archangel Michael... 25 6. Ask for Doreen Virtue, Ph.D. Charles Virtue C o n t e n t s...7... 15 1. Acceptance... 17 2. Allow Love... 19 3. Apologize... 21 4. Archangel Metatron... 23 5. Archangel Michael... 25 6. Ask for a Sign... 27 7.

More information

第7章-并行计算.ppt

第7章-并行计算.ppt EFEP90 10CDMP3 CD t 0 t 0 To pull a bigger wagon, it is easier to add more oxen than to grow a gigantic ox 10t 0 t 0 n p Ts Tp if E(n, p) < 1 p, then T (n) < T (n, p) s p S(n,p) = p : f(x)=sin(cos(x))

More information

C++ 程式設計

C++ 程式設計 C C 料, 數, - 列 串 理 列 main 數串列 什 pointer) 數, 數, 數 數 省 不 不, 數 (1) 數, 不 數 * 料 * 數 int *int_ptr; char *ch_ptr; float *float_ptr; double *double_ptr; 數 (2) int i=3; int *ptr; ptr=&i; 1000 1012 ptr 數, 數 1004

More information

WTO

WTO 10384 200015128 UDC Exploration on Design of CIB s Human Resources System in the New Stage (MBA) 2004 2004 2 3 2004 3 2 0 0 4 2 WTO Abstract Abstract With the rapid development of the high and new technique

More information

第一章 概论

第一章  概论 1 2 3 4 5 6 7 8 Linux 7.1 7.1.1 1 1 2 3 2 3 1 2 3 3 1 2 3 7.1.2 1 2 1 2 3 4 5 7.1.3 1 1 2 3 2 7.1 3 7.1.4 1 1 PCB 2 3 2 PCB PCB PCB PCB PCB 4 1 2 PSW 3 CPU CPU 4 PCB PCB CPU PCB PCB PCB PCB PCB PCB PCB

More information

9, : Java 19., [4 ]. 3 Apla2Java Apla PAR,Apla2Java Apla Java.,Apla,,, 1. 1 Apla Apla A[J ] Get elem (set A) A J A B Intersection(set A,set B) A B A B

9, : Java 19., [4 ]. 3 Apla2Java Apla PAR,Apla2Java Apla Java.,Apla,,, 1. 1 Apla Apla A[J ] Get elem (set A) A J A B Intersection(set A,set B) A B A B 25 9 2008 9 M ICROEL ECTRON ICS & COMPU TER Vol. 25 No. 9 September 2008 J ava 1,2, 1,2, 1,2 (1, 330022 ; 2, 330022) :,. Apla - Java,,.. : PAR ;Apla - Java ; ;CMP ; : TP311 : A : 1000-7180 (2008) 09-0018

More information

K301Q-D VRT中英文说明书141009

K301Q-D VRT中英文说明书141009 THE INSTALLING INSTRUCTION FOR CONCEALED TANK Important instuction:.. Please confirm the structure and shape before installing the toilet bowl. Meanwhile measure the exact size H between outfall and infall

More information

92 (When) (Where) (What) (Productivity) (Efficiency) () (2) (3) (4) (5) (6) (7) em-plant( SiMPLE++) Scheduling When Where Productivity Efficiency [5]

92 (When) (Where) (What) (Productivity) (Efficiency) () (2) (3) (4) (5) (6) (7) em-plant( SiMPLE++) Scheduling When Where Productivity Efficiency [5] DYNAMIC SCHEDULING IN TWO-MACHINE FLOW-SHOP WITH RECIRCULATION em-plant( SiMPLE++) Jen-Shiang Chen, Jar-Her Kao, Chun-Chieh Chen, Po-Cheng Liu, and Wen-Pin Lin Department of Industrial Engineering and

More information

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

Lorem ipsum dolor sit amet, consectetuer adipiscing elit English for Study in Australia 留 学 澳 洲 英 语 讲 座 Lesson 3: Make yourself at home 第 三 课 : 宾 至 如 归 L1 Male: 各 位 朋 友 好, 欢 迎 您 收 听 留 学 澳 洲 英 语 讲 座 节 目, 我 是 澳 大 利 亚 澳 洲 广 播 电 台 的 节 目 主 持 人 陈 昊 L1 Female: 各 位

More information

03施琅「棄留臺灣議」探索.doc

03施琅「棄留臺灣議」探索.doc 38 93 43 59 43 44 1 2 1621 1645 1646 3 1647 1649 4 1 1996 12 121 2 1988 1 54---79 3 1990 2 39 4 1987 8 16 19 1649 27---28 45 1651 5 1656 1662 1664 1667 1668 6 1681 1683 7 13 1958 2 1651 2002 11 67 1961

More information

C/C++语言 - 运算符、表达式和语句

C/C++语言 - 运算符、表达式和语句 C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe

More information

Microsoft Word - 11月電子報1130.doc

Microsoft Word - 11月電子報1130.doc 發 行 人 : 楊 進 成 出 刊 日 期 2008 年 12 月 1 日, 第 38 期 第 1 頁 / 共 16 頁 封 面 圖 話 來 來 來, 來 葳 格 ; 玩 玩 玩, 玩 數 學 在 11 月 17 到 21 日 這 5 天 裡 每 天 一 個 題 目, 孩 子 們 依 據 不 同 年 段, 尋 找 屬 於 自 己 的 解 答, 這 些 數 學 題 目 和 校 園 情 境 緊 緊 結

More information

VASP应用运行优化

VASP应用运行优化 1 VASP wszhang@ustc.edu.cn April 8, 2018 Contents 1 2 2 2 3 2 4 2 4.1........................................................ 2 4.2..................................................... 3 5 4 5.1..........................................................

More information

Microsoft PowerPoint - STU_EC_Ch08.ppt

Microsoft PowerPoint - STU_EC_Ch08.ppt 樹德科技大學資訊工程系 Chapter 8: Counters Shi-Huang Chen Fall 2010 1 Outline Asynchronous Counter Operation Synchronous Counter Operation Up/Down Synchronous Counters Design of Synchronous Counters Cascaded Counters

More information

Microsoft Word - unitmtg09.doc

Microsoft Word - unitmtg09.doc 目 錄 女 童 軍 訓 練 方 向... 1 八 項 綱 領... 1 小 隊 時 間... 3 集 會 編 排... 4 女 童 軍 組 全 年 活 動 計 劃 表... 5 第 一 週 集 會 主 題 : 認 識 女 童 軍 運 動... 6 第 二 週 集 會 主 題 : 履 行 誓 詞 與 規 律... 16 第 三 週 集 會 主 題 : 認 識 八 項 綱 領... 20 第 四 週 集

More information

ENGG1410-F Tutorial 6

ENGG1410-F Tutorial 6 Jianwen Zhao Department of Computer Science and Engineering The Chinese University of Hong Kong 1/16 Problem 1. Matrix Diagonalization Diagonalize the following matrix: A = [ ] 1 2 4 3 2/16 Solution The

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

神 学 家 陶 恕 博 士 曾 经 相 当 感 叹 的 说, 数 以 百 万 计 的 我 们 生 活 在 福 音 既 得 之 地, 各 自 都 有 所 属 的 教 会, 也 努 力 去 传 基 督 教 的 信 仰, 但 可 悲 的 是, 或 许 终 其 一 生, 都 未 曾 认 真 思 想 过 神

神 学 家 陶 恕 博 士 曾 经 相 当 感 叹 的 说, 数 以 百 万 计 的 我 们 生 活 在 福 音 既 得 之 地, 各 自 都 有 所 属 的 教 会, 也 努 力 去 传 基 督 教 的 信 仰, 但 可 悲 的 是, 或 许 终 其 一 生, 都 未 曾 认 真 思 想 过 神 Series: Sermon Series Title: 救 赎 历 史 第 四 章 : 耶 和 华 Part: 1 Speaker: 大 卫 普 莱 特 Date: Text: 各 位 亲 爱 的 弟 兄 姊 妹, 欢 迎 你 收 听 救 赎 历 史 系 列 第 五 讲 我 是 大 卫 普 莱 特 博 士 我 要 带 领 你 更 深 入 地 认 识, 那 昔 在 今 在 以 后 永 远 与 我 们

More information

Bus Hound 5

Bus Hound 5 Bus Hound 5.0 ( 1.0) 21IC 2007 7 BusHound perisoft PC hound Bus Hound 6.0 5.0 5.0 Bus Hound, IDE SCSI USB 1394 DVD Windows9X,WindowsMe,NT4.0,2000,2003,XP XP IRP Html ZIP SCSI sense USB Bus Hound 1 Bus

More information

國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 表 11 國 立 政 治 大 學 教 育 學 系 博 士 班 資 格 考 試 抵 免 申 請 表... 46 論 文 題 目 申 報 暨 指 導 教 授... 47 表 12 國 立 政 治 大 學 碩 博 士 班 論

國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 表 11 國 立 政 治 大 學 教 育 學 系 博 士 班 資 格 考 試 抵 免 申 請 表... 46 論 文 題 目 申 報 暨 指 導 教 授... 47 表 12 國 立 政 治 大 學 碩 博 士 班 論 國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 一 教 育 學 系 簡 介... 1 ( 一 ) 成 立 時 間... 1 ( 二 ) 教 育 目 標 與 發 展 方 向... 1 ( 三 ) 授 課 師 資... 2 ( 四 ) 行 政 人 員... 3 ( 五 ) 核 心 能 力 與 課 程 規 劃... 3 ( 六 ) 空 間 環 境... 12 ( 七 )

More information

Go构建日请求千亿微服务最佳实践的副本

Go构建日请求千亿微服务最佳实践的副本 Go 构建 请求千亿级微服务实践 项超 100+ 700 万 3000 亿 Goroutine & Channel Goroutine Channel Goroutine func gen() chan int { out := make(chan int) go func(){ for i:=0; i

More information

WWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2

WWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2 WWW PHP 2003 1 Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2 Comments PHP Shell Style: # C++ Style: // C Style: /* */ $value = $p * exp($r * $t); # $value

More information

2-7.FIT)

2-7.FIT) 文 化 园 地 8 2009 年 8 月 18 日 星 期 二 E-mail:liuliyuan@qunlitimes.com 群 立 文 化 感 受 今 天 你 开 心 了 吗? 周 传 喜 群 雄 争 立 竞 争 意 识 ; 傲 立 群 雄 奋 斗 目 标, 这 几 句 话 一 直 是 群 立 的 文 化 和 方 针, 也 同 样 是 我 很 喜 欢 的 座 右 铭 我 想 这 几 句 话 生

More information

1.ai

1.ai HDMI camera ARTRAY CO,. LTD Introduction Thank you for purchasing the ARTCAM HDMI camera series. This manual shows the direction how to use the viewer software. Please refer other instructions or contact

More information

Microsoft Word - SupplyIT manual 3_cn_david.doc

Microsoft Word - SupplyIT manual 3_cn_david.doc MR PRICE Supply IT Lynette Rajiah 1 3 2 4 3 5 4 7 4.1 8 4.2 8 4.3 8 5 9 6 10 6.1 16 6.2 17 6.3 18 7 21 7.1 24 7.2 25 7.3 26 7.4 27 7.5 28 7.6 29 7.7 30 7.8 31 7.9 32 7.10 32 7.11 33 7.12 34 1 7.13 35 7.14

More information

Kubenetes 系列列公开课 2 每周四晚 8 点档 1. Kubernetes 初探 2. 上 手 Kubernetes 3. Kubernetes 的资源调度 4. Kubernetes 的运 行行时 5. Kubernetes 的 网络管理理 6. Kubernetes 的存储管理理 7.

Kubenetes 系列列公开课 2 每周四晚 8 点档 1. Kubernetes 初探 2. 上 手 Kubernetes 3. Kubernetes 的资源调度 4. Kubernetes 的运 行行时 5. Kubernetes 的 网络管理理 6. Kubernetes 的存储管理理 7. Kubernetes 包管理理 工具 Helm 蔺礼强 Kubenetes 系列列公开课 2 每周四晚 8 点档 1. Kubernetes 初探 2. 上 手 Kubernetes 3. Kubernetes 的资源调度 4. Kubernetes 的运 行行时 5. Kubernetes 的 网络管理理 6. Kubernetes 的存储管理理 7. Kubernetes

More information

2015年4月11日雅思阅读预测机经(新东方版)

2015年4月11日雅思阅读预测机经(新东方版) 剑 桥 雅 思 10 第 一 时 间 解 析 阅 读 部 分 1 剑 桥 雅 思 10 整 体 内 容 统 计 2 剑 桥 雅 思 10 话 题 类 型 从 以 上 统 计 可 以 看 出, 雅 思 阅 读 的 考 试 话 题 一 直 广 泛 多 样 而 题 型 则 稳 中 有 变 以 剑 桥 10 的 test 4 为 例 出 现 的 三 篇 文 章 分 别 是 自 然 类, 心 理 研 究 类,

More information

2009.05

2009.05 2009 05 2009.05 2009.05 璆 2009.05 1 亿 平 方 米 6 万 套 10 名 20 亿 元 5 个 月 30 万 亿 60 万 平 方 米 Data 围 观 CCDI 公 司 内 刊 企 业 版 P08 围 观 CCDI 管 理 学 上 有 句 名 言 : 做 正 确 的 事, 比 正 确 地 做 事 更 重 要 方 向 的 对 错 于 大 局 的 意 义 而 言,

More information

A Study on Grading and Sequencing of Senses of Grade-A Polysemous Adjectives in A Syllabus of Graded Vocabulary for Chinese Proficiency 2002 I II Abstract ublished in 1992, A Syllabus of Graded Vocabulary

More information

Microsoft Word - 第四組心得.doc

Microsoft Word - 第四組心得.doc 徐 婉 真 這 四 天 的 綠 島 人 權 體 驗 營 令 我 印 象 深 刻, 尤 其 第 三 天 晚 上 吳 豪 人 教 授 的 那 堂 課, 他 讓 我 聽 到 不 同 於 以 往 的 正 義 之 聲 轉 型 正 義, 透 過 他 幽 默 熱 情 的 語 調 激 起 了 我 對 政 治 的 興 趣, 願 意 在 未 來 多 關 心 社 會 多 了 解 政 治 第 一 天 抵 達 綠 島 不 久,

More information

W. Richard Stevens UNIX Sockets API echo Sockets TCP OOB IO C struct C/C++ UNIX fork() select(2)/poll(2)/epoll(4) IO IO CPU 100% libevent UNIX CPU IO

W. Richard Stevens UNIX Sockets API echo Sockets TCP OOB IO C struct C/C++ UNIX fork() select(2)/poll(2)/epoll(4) IO IO CPU 100% libevent UNIX CPU IO Linux muduo C++ (giantchen@gmail.com) 2012-09-30 C++ TCP C++ x86-64 Linux TCP one loop per thread Linux native muduo C++ IT 5 C++ muduo 2 C++ C++ Primer 4 W. Richard Stevens UNIX Sockets API echo Sockets

More information

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63> 2010 年 理 工 类 AB 级 阅 读 判 断 例 题 精 选 (2) Computer mouse How does the mouse work? We have to start at the bottom, so think upside down for now. It all starts with mouse ball. As the mouse ball in the bottom

More information

Logitech Wireless Combo MK45 English

Logitech Wireless Combo MK45 English Logitech Wireless Combo MK45 Setup Guide Logitech Wireless Combo MK45 English................................................................................... 7..........................................

More information

國立中山大學學位論文典藏

國立中山大學學位論文典藏 88 2 The Research of head-hunting Industry. 8741605 87 Wu Po-Hui Yeh, Kuang S. head-hunting executive search Transaction cost Agency theory 1 This study attempts to investigate and analyze the Executive

More information

國立桃園高中96學年度新生始業輔導新生手冊目錄

國立桃園高中96學年度新生始業輔導新生手冊目錄 彰 化 考 區 104 年 國 中 教 育 會 考 簡 章 簡 章 核 定 文 號 : 彰 化 縣 政 府 104 年 01 月 27 日 府 教 學 字 第 1040027611 號 函 中 華 民 國 104 年 2 月 9 日 彰 化 考 區 104 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 鹿 港 高 級 中 學 地 址 :50546 彰 化 縣 鹿 港 鎮

More information

2005 5,,,,,,,,,,,,,,,,, , , 2174, 7014 %, % 4, 1961, ,30, 30,, 4,1976,627,,,,, 3 (1993,12 ),, 2

2005 5,,,,,,,,,,,,,,,,, , , 2174, 7014 %, % 4, 1961, ,30, 30,, 4,1976,627,,,,, 3 (1993,12 ),, 2 3,,,,,, 1872,,,, 3 2004 ( 04BZS030),, 1 2005 5,,,,,,,,,,,,,,,,, 1928 716,1935 6 2682 1928 2 1935 6 1966, 2174, 7014 %, 94137 % 4, 1961, 59 1929,30, 30,, 4,1976,627,,,,, 3 (1993,12 ),, 2 , :,,,, :,,,,,,

More information

ebook140-8

ebook140-8 8 Microsoft VPN Windows NT 4 V P N Windows 98 Client 7 Vintage Air V P N 7 Wi n d o w s NT V P N 7 VPN ( ) 7 Novell NetWare VPN 8.1 PPTP NT4 VPN Q 154091 M i c r o s o f t Windows NT RAS [ ] Windows NT4

More information

[ 13 年 12 月 06 日, 下 午 6 点 24 分 ] Intel Hosts 新 加 入 的 同 学 们, 快 去 听 听 在 线 宣 讲 会 哦, 同 时 完 成 页 面 下 方 有 奖 调 查, 就 有 资 格 参 与 大 奖 抽 取 啦! [ 13 年 12 月 06 日, 下 午

[ 13 年 12 月 06 日, 下 午 6 点 24 分 ] Intel Hosts 新 加 入 的 同 学 们, 快 去 听 听 在 线 宣 讲 会 哦, 同 时 完 成 页 面 下 方 有 奖 调 查, 就 有 资 格 参 与 大 奖 抽 取 啦! [ 13 年 12 月 06 日, 下 午 China Career Fair: To Know a Different Intel Time Participants Chat Transcript [ 13 年 12 月 06 日, 下 午 6 点 00 分 ] Participant Hi [ 13 年 12 月 06 日, 下 午 6 点 00 分 ] Intel Hosts 大 家 好! [ 13 年 12 月 06 日, 下 午

More information

Stochastic Processes (XI) Hanjun Zhang School of Mathematics and Computational Science, Xiangtan University 508 YiFu Lou talk 06/

Stochastic Processes (XI) Hanjun Zhang School of Mathematics and Computational Science, Xiangtan University 508 YiFu Lou talk 06/ Stochastic Processes (XI) Hanjun Zhang School of Mathematics and Computational Science, Xiangtan University hjzhang001@gmail.com 508 YiFu Lou talk 06/04/2010 - Page 1 Outline 508 YiFu Lou talk 06/04/2010

More information

Microsoft PowerPoint - ATF2015.ppt [相容模式]

Microsoft PowerPoint - ATF2015.ppt [相容模式] Improving the Video Totalized Method of Stopwatch Calibration Samuel C.K. Ko, Aaron Y.K. Yan and Henry C.K. Ma The Government of Hong Kong Special Administrative Region (SCL) 31 Oct 2015 1 Contents Introduction

More information

Value Chain ~ (E-Business RD / Pre-Sales / Consultant) APS, Advanc

Value Chain ~ (E-Business RD / Pre-Sales / Consultant) APS, Advanc Key @ Value Chain fanchihmin@yahoo.com.tw 1 Key@ValueChain 1994.6 1996.6 2000.6 2000.10 ~ 2004.10 (E- RD / Pre-Sales / Consultant) APS, Advanced Planning & Scheduling CDP, Collaborative Demand Planning

More information

2

2 1 2 在印度期間無意中 我的生命和很多陌生的生命產生了連結 至今 那 些陌生的臉龐仍不時出現在我腦中 這些可能都是緣份所帶來的吧 攝影 劉啟群 會長 會長的話... 4 生命的悸動 - 達蘭薩拉... 5 達蘭薩拉隨筆... 7 逆境不再 強者永在... 9 民宿祖孫情 水蜜桃甜 人情味更甜... 10 因為有您的參與 義診才能圓滿... 11 期待您的加入 讓感動由您啟動... 12 MESSAGE

More information

C

C C 2017 3 14 1. 2. 3. 4. 2/95 C 1. 3/95 C I 1 // talkback.c: 2 #include 3 #include 4 #define DENSITY 62.4 5 int main(void) 6 { 7 float weight, volume; 8 int size; 9 unsigned long letters;

More information

Microsoft Word - 國小中年級.doc

Microsoft Word - 國小中年級.doc 100 學 年 度 全 國 學 生 美 術 比 賽 水 墨 畫 類 國 小 中 年 級 組 得 獎 名 冊 特 優 高 雄 市 蔡 睿 麗 工 作 中 的 阿 嬤 七 賢 國 小 許 秀 珠 特 優 新 竹 縣 劉 玟 輝 街 頭 藝 人 田 寮 國 小 鄭 生 祥 優 等 南 投 縣 廖 書 賢 貓 的 美 夢 廣 福 國 小 田 佩 麟 優 等 屏 東 縣 郭 尚 融 秋 蟹 正 甜 東 隆 國

More information

93年度分項計畫執行報告-子計畫八.doc

93年度分項計畫執行報告-子計畫八.doc 93 Celestron - 14 This is a four years project. In this project, we will add a solar telescope, a spectrograph, and a few small teaching telescopes to the existing facilities. We will also install a Celestron

More information

從詩歌的鑒賞談生命價值的建構

從詩歌的鑒賞談生命價值的建構 Viktor E. Frankl (logotherapy) (will-to-meaning) (creative values) Ture (Good) (Beauty) (experiential values) (attitudinal values) 1 2 (logotherapy) (biological) (2) (psychological) (3) (noölogical) (4)

More information

Love Actually 真 的 戀 愛 了!? 焦 點 主 題 2035 年 一 個 寒 冷 卻 又 放 晴 的 下 午, 爸 媽 一 大 清 早 已 上 班, 只 得 小 奈 獨 個 兒 待 在 家 中, 奢 侈 地 享 受 著 她 的 春 節 假 期 剛 度 過 了 期 考 的 艱 苦 歲

Love Actually 真 的 戀 愛 了!? 焦 點 主 題 2035 年 一 個 寒 冷 卻 又 放 晴 的 下 午, 爸 媽 一 大 清 早 已 上 班, 只 得 小 奈 獨 個 兒 待 在 家 中, 奢 侈 地 享 受 著 她 的 春 節 假 期 剛 度 過 了 期 考 的 艱 苦 歲 愛 情, 每 一 個 人 都 十 分 渴 望 有 的, 不 論 成 年 人 還 是 中 學 生 但 是, 你 知 道 甚 麼 是 愛 情 嗎? 如 何 才 可 以 擁 有 真 正 的 愛 情? 池 田 先 生 對 愛 情 方 面 有 些 甚 麼 指 導 呢? 01 焦 點 主 題 Love Actually... 真 的 戀 愛 了!? 09 Love Song 11 女 未 來 部 長 專 訪 15

More information

國立中山大學學位論文典藏

國立中山大學學位論文典藏 i Examinations have long been adopting for the selection of the public officials and become an essential tradition in our country. For centuries, the examination system, incorporated with fairness, has

More information

UDC The Policy Risk and Prevention in Chinese Securities Market

UDC The Policy Risk and Prevention in Chinese Securities Market 10384 200106013 UDC The Policy Risk and Prevention in Chinese Securities Market 2004 5 2004 2004 2004 5 : Abstract Many scholars have discussed the question about the influence of the policy on Chinese

More information

99 學年度班群總介紹 第 370 期 班群總導 陳怡靜 G45 班群總導 陳怡靜(河馬) A 家 惠如 家浩 T 格 宜蓁 小 霖 怡 家 M 璇 均 蓁 雴 家 數學領域 珈玲 國燈 370-2 英領域 Kent

99 學年度班群總介紹 第 370 期 班群總導 陳怡靜 G45 班群總導 陳怡靜(河馬) A 家 惠如 家浩 T 格 宜蓁 小 霖 怡 家 M 璇 均 蓁 雴 家 數學領域 珈玲 國燈 370-2 英領域 Kent 2010 年 8 月 27 日 出 刊 精 緻 教 育 宜 蘭 縣 公 辦 民 營 人 國 民 中 小 學 財 團 法 人 人 適 性 教 育 基 金 會 承 辦 地 址 : 宜 蘭 縣 26141 頭 城 鎮 雅 路 150 號 (03)977-3396 http://www.jwps.ilc.edu.tw 健 康 VS. 學 習 各 位 合 夥 人 其 實 都 知 道, 我 是 個 胖 子, 而

More information

徐汇教育214/3月刊 重 点 关 注 高中生异性交往的小团体辅导 及效果研究 颜静红 摘 要 采用人际关系综合诊断量表 郑日昌编制并 与同性交往所不能带来的好处 带来稳定感和安全感 能 修订 对我校高一学生进行问卷测量 实验组前后测 在 够度过更快乐的时光 获得与别人友好相处的经验 宽容 量表总分和第 4 项因子分 异性交往困扰 上均有显著差 大度和理解力得到发展 得到掌握社会技术的机会 得到 异

More information

HOL-CHG-1695

HOL-CHG-1695 Table of Contents 练 习 概 述 - - vsphere 挑 战 练 习... 2 练 习 指 导... 3 第 1 单 元 : 在 实 践 中 学 习 (15 分 钟 )... 5 剪 贴 板 复 制 和 粘 贴 功 能 无 法 使 用?... 6 虚 拟 机 性 能 不 佳... 17 第 2 单 元 : 基 本 运 维 挑 战 (30 分 钟 )... 32 无 法 登 录

More information

hks298cover&back

hks298cover&back 2957 6364 2377 3300 2302 1087 www.scout.org.hk scoutcraft@scout.org.hk 2675 0011 5,500 Service and Scouting Recently, I had an opportunity to learn more about current state of service in Hong Kong

More information

可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目 的 地 後

可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目 的 地 後 郭家朗 許鈞嵐 劉振迪 樊偉賢 林洛鋒 第 36 期 出版日期 28-3-2014 出版日期 28-3-2014 可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目

More information

Microsoft PowerPoint - ryz_030708_pwo.ppt

Microsoft PowerPoint - ryz_030708_pwo.ppt Long Term Recovery of Seven PWO Crystals Ren-yuan Zhu California Institute of Technology CMS ECAL Week, CERN Introduction 20 endcap and 5 barrel PWO crystals went through (1) thermal annealing at 200 o

More information

Computer Architecture

Computer Architecture ECE 3120 Computer Systems Assembly Programming Manjeera Jeedigunta http://blogs.cae.tntech.edu/msjeedigun21 Email: msjeedigun21@tntech.edu Tel: 931-372-6181, Prescott Hall 120 Prev: Basic computer concepts

More information

1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10

1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10 Java V1.0.1 2007 4 10 1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10 6.2.10 6.3..10 6.4 11 7.12 7.1

More information

124 第十三期 Conflicts in the Takeover of the Land in Taiwan after the Sino-Japanese War A Case in the Change of the Japanese Names of the Taiwanese Peopl

124 第十三期 Conflicts in the Takeover of the Land in Taiwan after the Sino-Japanese War A Case in the Change of the Japanese Names of the Taiwanese Peopl 123 戰後初期臺灣土地接收的糾紛 以更改日式姓名的臺人遭遇為例 124 第十三期 Conflicts in the Takeover of the Land in Taiwan after the Sino-Japanese War A Case in the Change of the Japanese Names of the Taiwanese People Abstract By Ho Fung-jiao

More information

未命名

未命名 1 Synchronized synchronized Java ( ) Synchronized Java unlock lock load assign unlock (happen-before) lock Synchronized null " " HotSpot JVM Object Monitor synchronized 1 2 Class synchronized monitor Class

More information

建國科大 許您一個海闊天空的未來 建國科大本著術德兼修五育並重的教育方針 持續努力的朝向專業教學型大學邁進 期許建國的學生能成為企業所樂用的人才 建國科大多元性發展與延伸觸角 如 教學卓越計畫 產官學合作 國際交流活動等等 讓師生能充實基礎實力 更提升競爭力 不管將來是要升學或是就業 都能一帆風順

建國科大 許您一個海闊天空的未來 建國科大本著術德兼修五育並重的教育方針 持續努力的朝向專業教學型大學邁進 期許建國的學生能成為企業所樂用的人才 建國科大多元性發展與延伸觸角 如 教學卓越計畫 產官學合作 國際交流活動等等 讓師生能充實基礎實力 更提升競爭力 不管將來是要升學或是就業 都能一帆風順 校刊 Chienkuo Monthly 224 2 0 11.4.1 6 出刊 學 力 實 力 願 力 建國科技大學辦學 卓越 優質 傑出 奉准101年起以公立標準招收繁星計畫學生 焦 點 報 導 建國科技大學奉准招收繁星計畫學生 學力實力願力 自動化工程系參加 2011臺灣無人飛機設計競賽 脫穎而出 獲得五座獎盃 兩 岸 交 流 華中科技大學武昌分校金國華董事長蒞校參訪 策略聯盟計畫 建國科技大學美容系舉辦新娘造型專題競賽活動

More information

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile.. WebSphere Studio Application Developer IBM Portal Toolkit... 1/21 WebSphere Studio Application Developer IBM Portal Toolkit Portlet Doug Phillips (dougep@us.ibm.com),, IBM Developer Technical Support Center

More information