android中的Signal.docx

  1. 1、本文档共17页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
android中的Signal

Android中的Signal信号What is signalHow many kind signal,General signalHow to send signalHow to handle signalHow to generally use signal Signal and system callsignal handle Reentrant Functionssignal setsignal queuesigprocmask FunctionSignals are a limited form of inter-process communication used in Unix, Unix-like, and other POSIX-compliant operating systems. A signal is an asynchronous notification sent to a process or to a specific thread within the same process in order to notify it of an event that occurred. Signals originated in 1970s Bell Labs Unix and have been more recently specified in the POSIX standard.When a signal is sent, the operating system interrupts the target process normal flow of execution to deliver the signal. Execution can be interrupted during any non-atomic instruction. If the process has previously registered a signal handler, that routine is executed. Otherwise, the default signal handler is executed.Embedded programs may find signals useful for interprocess communications, as the computational and memory footprint for signals is small.[1] signal中文描述列表Signal Description SIGABRT 由调用abort函数产生,进程非正常退出SIGALRM 用alarm函数设置的timer超时或setitimer函数设置的interval timer超时SIGBUS 某种特定的硬件异常,通常由内存访问引起SIGCANCEL 由Solaris Thread Library内部使用,通常不会使用SIGCHLD 进程Terminate或Stop的时候,SIGCHLD会发送给它的父进程。缺省情况下该Signal会被忽略SIGCONT 当被stop的进程恢复运行的时候,自动发送SIGEMT 和实现相关的硬件异常SIGFPE 数学相关的异常,如被0除,浮点溢出,等等SIGFREEZE Solaris专用,Hiberate或者Suspended时候发送SIGHUP 发送给具有Terminal的Controlling Process,当terminal被disconnect时候发送SIGILL 非法指令异常SIGINFO BSD signal。由Status Key产生,通常是CTRL+T。发送给所有Foreground Group的进程SIGINT 由Interrupt Key产生,通常是CTRL+C或者DELETE。发送给所有ForeGround Group的进程SIGIO 异步IO事件SIGIOT 实现相关的硬件异常,一般对应SIGABRT SIGKILL 无法处理和忽略。中止某个进程SIGLWP 由Solaris Thread Libray内部使用SIGPIPE 在reader中止之后写Pipe的时候发送SIGPOLL 当某个事件发送给Pollable Device的时候发送SIGPROF Setitimer指定的Profiling Interval Timer所产生SIGPWR 和系统相关。和UPS相关。SIGQUIT 输入Quit Key的时候(CTRL+\)发送给所有Foreground Group的进程SIGSEGV 非法内存访问SIGSTKFLT Linux专用,数学协处理器的栈异常SIGSTOP 中止进程。无法处理和忽略。SI

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档