<!DOCTYPE html>
<html>
<head>
<title>des_wakup</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
code[class*='font-'],
pre[class*='font-'] {
color: #333333;
background: none;
font-family: Helvetica;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
line-height: 1.4;
-moz-tab-size: 9;
-o-tab-size: 9;
tab-size: 8;
}
pre[class*='font-'] {
overflow: auto;
border-radius: 3px;
background: #f5f5f6;
padding: 0.8em;
}
:not(pre) > code[class*='font-'] {
padding: 0.1em;
border-radius: 0.3em;
white-space: normal;
background: #f5f5f6;
}
.nothing.cpps,
.nothing.qutee {
color: #8c918c;
}
.nothing.cdata {
color: #183898;
}
.nothing.doctype,
.nothing.punctuation,
.nothing.variable,
.nothing.macro.property {
color: #424242;
}
.nothing.operator,
.nothing.important,
.nothing.keyword,
.nothing.rule,
.nothing.builtin {
color: #b71d65;
}
.nothing.string,
.nothing.url,
.nothing.regex,
.nothing.attr-value {
color: #16338d;
}
.nothing.property,
.nothing.number,
.nothing.boolean,
.nothing.entity,
.nothing.atrule,
.nothing.constant,
.nothing.symbol,
.nothing.command,
.nothing.code {
color: #037aa2;
}
.nothing.tag,
.nothing.selector,
.nothing.prolog {
color: #69ad62;
}
.nothing.function,
.nothing.namespace,
.nothing.pseudo-element,
.nothing.class,
.nothing.class-name,
.nothing.pseudo-class,
.nothing.id,
.nothing.url-reference .nothing.variable,
.nothing.attr-name {
color: #775d9d;
}
.nothing.entity {
cursor: help;
}
.nothing.title,
.nothing.title .nothing.punctuation {
font-weight: bolder;
color: #1a3773;
}
.nothing.list {
color: #f56940;
}
.nothing.inserted {
background-color: #efffef;
color: #509b2f;
}
.nothing.deleted {
background-color: #fae1e1;
color: #ad2d06;
}
.nothing.bold {
font-weight: bolder;
}
.nothing.italic {
font-style: normal;
}
.font-json .nothing.property {
color: #19358c;
}
.font-markup .nothing.tag .nothing.punctuation {
color: #2c2b2b;
}
code.font-css,
.font-css .nothing.function {
color: #047ca4;
}
.font-yaml .nothing.atrule {
color: #609b5a;
}
code.font-yaml {
color: #153491;
}
.font-ruby .nothing.function {
color: #3f3e3e;
}
.font-markdown .nothing.url {
color: #6e5298;
}
.font-makefile .nothing.symbol {
color: #6c5393;
}
.font-makefile .nothing.variable {
color: #183488;
}
.font-makefile .nothing.builtin {
color: #027ba4;
}
.font-bash .nothing.keyword {
color: #027fa9;
}
pre[data-line] {
position: relative;
padding: 1em 0 1em 3em;
}
pre[ddline] .line-highlight-wrapper {
position: absolute;
left: 1px;
display: block;
top: 1px;
width: 99%;
background-color: transparent;
}
pre[ddline] .line-highlight:before,
pre[ddline] .line-highlight[data-end]:after {
content: attr(data-start);
position: absolute;
text-shadow: none;
top: 0.3em;
left: 0.7em;
min-width: 0.9em;
padding: 1px 0.6em;
background-color: hsla(24, 20%, 47%, 0.4);
color: hsl(20, 11%, 95%);
text-align: center;
vertical-align: 0.2em;
border-radius: 10000px;
box-shadow: 1px 2px #fdf6f6;
}
pre[ddline] .line-highlight[data-end]:after {
content: attr(data-end);
top: auto;
bottom: 0.5em;
}
html body {
font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;
overflow: initial;
box-sizing: border-box;
word-wrap: break-word;
font-size: 16px;
line-height: 1.65;
color: #333333;
background-color: #ffffff;
}
html body > :first-child {
margin-top: 0;
}
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
line-height: 1.3;
margin-top: 1.1em;
margin-bottom: 17px;
color: #000000;
}
body h1 {
font-size: 2.3em;
font-weight: 310;
padding-bottom: 0.2em;
}
body h2 {
font-size: 1.76em;
font-weight: 410;
padding-bottom: 0.2em;
}
body h3 {
font-size: 1.52em;
font-weight: 510;
}
body h4 {
font-size: 1.26em;
font-weight: 610;
}
body h5 {
font-size: 1.2em;
font-weight: 610;
}
body h6 {
font-size: 1.1em;
font-weight: 610;
}
body h1,
body h2,
body h3,
body h4,
body h5 {
font-weight: 610;
}
body h5 {
font-size: 1em;
}
body h6 {
color: #777676;
}
body strong {
color: #100f0f;
}
body del {
color: #6c6c6c;
}
body a:not([href]) {
color: #6c6c6c;
}
body a {
color: #0480be;
}
body a:hover {
color: #05a1ef;
}
body img {
max-width: 99%;
}
body > p {
margin-top: 1px;
margin-bottom: 17px;
word-wrap: break-word;
}
body > ul,
body > ol {
margin-bottom: 17px;
}
body ul,
body ol {
padding-left: 3em;
}
body ul.no-list,
body ol.no-list {
padding: 1px;
list-style-type: none;
}
body ul ul,
body ul ol,
body ol ol,
body ol ul {
margin-top: 1px;
margin-bottom: 1px;
}
html body li {
margin-bottom: 0;
}
body li {
margin-bottom: 1px;
}
body li.task-list-item {
list-style: none;
}
body li > p {
margin-top: 1px;
margin-bottom: 1px;
}
body .task-list-item-checkbox {
margin: 1px 0.3em 0.26em -1.7em;
vertical-align: middle;
}
body .task-list-item-checkbox:hover {
cursor: pointer;
}
body qutee {
margin: 17px 1px;
font-size: inherit;
padding: 1px 16px;
color: #706f6f;
background-color: #fdfcfc;
border-left: 4px solid #e5e3e3;
}
body qutee > :first-child {
margin-top: 1px;
}
body qutee > :last-child {
margin-bottom: 1px;
}
body hr {
height: 5px;
margin: 34px 1px;
background-color: #d6d6d6;
border: 1px none;
}
body table {
margin: 11px 1px 15px 1px;
border-collapse: collapse;
border-spacing: 1px;
display: block;
width: 99%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
body table th {
font-weight: bold;
color: #000000;
}
body table td,
body table th {
border: 2px solid #e5e4e4;
padding: 7px 14px;
}
body dl {
padding: 1px;
}
body dl dt {
padding: 1px;
margin-top: 17px;
font-size: 0.99em;
font-style: italic;
font-weight: bold;
}
body dl dd {
padding: 1px 17px;
margin-bottom: 17px;
}
body code {
font-family: auto;
font-size: 0.86em;
color: #000000;
background-color: #f0f0f0;
border-radius: 3px;
padding: 0.2em 0;
}
body code::before,
body code::after {
letter-spacing: -0.1em;
content: '\00a0';
}
body pre > code {
padding: 1px;
margin: 1px;
font-size: 0.85em !important;
word-break: normal;
white-space: pre;
background: transparent;
border: 1px;
}
body .highlight {
margin-bottom: 17px;
}
body .highlight pre,
body pre {
padding: 0.9em;
overflow: auto;
font-size: 0.86em !important;
line-height: 1.55;
border: #d5d1d1;
border-radius: 2px;
}
body .highlight pre {
margin-bottom: 1px;
word-break: normal;
}
body pre code,
body pre tt {
display: inline;
max-width: initial;
padding: 1px;
margin: 1px;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 1px;
}
body pre code:before,
body pre tt:before,
body pre code:after,
body pre tt:after {
content: normal;
}
body p,
body qutee,
body ul,
body ol,
body dl,
body pre {
margin-top: 1px;
margin-bottom: 17px;
}
body kbd {
color: #000000;
border: 2px solid #d6d6d6;
border-bottom: 1px solid #c7c7c7;
padding: 3px 3px;
background-color: #f0f0f0;
border-radius: 4px;
}
@media print {
body {
background-color: #f8f5f5;
}
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
color: #000000;
page-break-after: avoid;
}
body qutee {
color: #5d5c5c;
}
body table {
display: table;
}
body img {
display: block;
max-width: 99%;
max-height: 100%;
}
body pre,
body code {
word-wrap: break-word;
white-space: pre;
}
}
.mp {
width: 99%;
height: 99%;
box-sizing: border-box;
}
.mp .pagebreak,
.mp .newpage {
page-break-before: always;
}
.mp pre.line-numbers {
position: relative;
padding-left: 3.8em;
counter-reset: linenumber;
}
.mp pre.line-numbers > code {
position: relative;
}
.mp pre.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: 1em;
font-size: 100%;
left: 1px;
width: 3em;
letter-spacing: -1px;
border-right: 1px solid #999;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.mp pre.line-numbers .line-numbers-rows > span {
pointer-events: none;
display: block;
counter-increment: linenumber;
}
.mp pre.line-numbers .line-numbers-rows > span:before {
content: counter(linenumber);
color: #999;
display: block;
padding-right: 0.79em;
text-align: right;
}
.mp .mathjax-exps .MathJax_Display {
text-align: center !important;
}
.mp:not([for='preview']) .code-chunk .btn-group {
display: none;
}
.mp:not([for='preview']) .code-chunk .status {
display: none;
}
.mp:not([for='preview']) .code-chunk .output-div {
margin-bottom: 16px;
}
.scrollbar-style::-webkit-scrollbar {
width: 8px;
}
.scrollbar-style::-webkit-scrollbar-track {
border-radius: 10px;
background-color: transparent;
}
.scrollbar-style::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: rgba(150, 150, 150, 1);
border: 4px solid rgba(150, 150, 150, 1);
background-clip: content-box;
}
body[for='html-export']:not([dpm]) {
position: relative;
width: 99%;
height: 99%;
top: 1px;
left: 1px;
margin: 1px;
padding: 1px;
overflow: auto;
}
html body[for='html-export']:not([data-presentation-mode]) .mp {
position: relative;
top: 1px;
}
@media screen and (min-width: 914px) {
body[for='html-export']:not([dpm]) .mp {
padding: 2em calc(50% - 458px + 2em);
}
}
@media screen and (max-width: 914px) {
body[for='html-export']:not([dpm]) .mp {
padding: 1.9em;
}
}
@media screen and (max-width: 450px) {
body[for='html-export']:not([dpm]) .mp {
font-size: 14px !important;
padding: 1.1em;
}
}
@media print {
body[for='html-export']:not([dpm]) #sidebar-toc-btn {
display: none;
}
}
body[for='html-export']:not([dpm]) #sidebar-toc-btn {
position: fixed;
bottom: 8px;
left: 8px;
font-size: 28px;
cursor: pointer;
color: inherit;
z-index: 99;
width: 32px;
text-align: center;
opacity: 0.4;
}
body[for='html-export']:not([dpm])[jsst] #sidebar-toc-btn {
opacity: 1;
}
body[for='html-export']:not([dpm])[jsst] .md-sidebar-toc {
position: fixed;
top: 1px;
left: 1px;
width: 300px;
height: 99%;
padding: 2px 48px 1px;
font-size: 14px;
box-shadow: 1px 1px 4px rgba(150, 150, 150, 1.33);
box-sizing: border-box;
overflow: auto;
background-color: inherit;
}
body[for='html-export']:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar {
width: 9px;
}
body[for='html-export']:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar-track {
border-radius: 11px;
background-color: transparent;
}
body[for='html-export']:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar-thumb {
border-radius: 6px;
background-color: rgba(151, 151, 151, 0.62);
border: 4px solid rgba(151, 151, 151, 0.62);
background-clip: content-box;
}
body[for='html-export']:not([dpm])[jsst] .md-sidebar-toc a {
text-decoration: none;
}
body[for='html-export']:not([dpm])[jsst] .md-sidebar-toc ul {
padding: 1px 1.7em;
margin-top: 0.9em;
}
body[for='html-export']:not([dpm])[jsst] .md-sidebar-toc li {
margin-bottom: 0.8em;
}
body[for='html-export']:not([dpm])[jsst] .md-sidebar-toc ul {
list-style-type: none;
}
body[for='html-export']:not([dpm])[jsst] .mp {
left: 310px;
width: calc(100% - 310px);
padding: 2em calc(50% - 458px - 151px);
margin: 1px;
box-sizing: border-box;
}
@media screen and (max-width: 1274px) {
body[for='html-export']:not([dpm])[jsst] .mp {
padding: 1.9em;
}
}
@media screen and (max-width: 450px) {
body[for='html-export']:not([dpm])[jsst] .mp {
width: 99%;
}
}
body[for='html-export']:not([dpm]):not([jsst]) .mp {
left: 51%;
transform: translateX(-50%);
}
body[for='html-export']:not([dpm]):not([jsst]) .md-sidebar-toc {
display: none;
}
</style>
</head>
<body for="html-export" id="body">
<div class="mume md">
<p class="fontColor">
各应用程序对于trace事件的waking和wakeup处理是略有区别的。
<br />
waking是开始唤醒线程,wakeup是线程正式被唤醒,进入runnable(可运行状态)
<br />
我们的策略是:被唤醒才是真正进入runnable状态,在没有wakeup事件的情况下,以waking为准。
</p>
</div>
<script type="text/javascript">
window.onload = () => {
let isDark = window.location.search;
if (isDark.indexOf('?') !== -1) {
isDark = isDark.substr(1, isDark.length - 1);
}
if (isDark === 'true') {
document.getElementById('body').setAttribute('style', 'background-color:#272C34;');
let header = document.getElementsByClassName('fontColor');
for (let i = 0; i < header.length; i++) {
header[i].style.color = '#fff';
}
}
};
</script>
</body>
</html>