-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
533 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,323 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" prefix="og: http://ogp.me/ns# fb: https://www.facebook.com/2008/fbml"> | ||
<head> | ||
<title>Async and multithread programming - 1 Async - TechLoveDeath</title> | ||
<!-- Using the latest rendering mode for IE --> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
|
||
<link href="https://brycemeng.com/images/favicon.png" rel="icon"> | ||
|
||
<link rel="canonical" href="https://brycemeng.com/async-and-multithread-programming-1-async.html"> | ||
|
||
<meta name="author" content="Bryce" /> | ||
<meta name="keywords" content="Quant" /> | ||
<meta name="description" content="Async and multithread programming - 1 What is asynchronous programming? (JavaScript)" /> | ||
|
||
<meta property="og:site_name" content="TechLoveDeath" /> | ||
<meta property="og:type" content="article"/> | ||
<meta property="og:title" content="Async and multithread programming - 1 Async"/> | ||
<meta property="og:url" content="https://brycemeng.com/async-and-multithread-programming-1-async.html"/> | ||
<meta property="og:description" content="Async and multithread programming - 1 What is asynchronous programming? (JavaScript)"/> | ||
<meta property="article:published_time" content="2024-05-21" /> | ||
<meta property="article:section" content="Quant" /> | ||
<meta property="article:tag" content="Quant" /> | ||
<meta property="article:author" content="Bryce" /> | ||
|
||
|
||
|
||
<!-- Bootstrap --> | ||
<link rel="stylesheet" href="https://brycemeng.com/theme/css/bootstrap.min.css" type="text/css"/> | ||
<link href="https://brycemeng.com/theme/css/font-awesome.min.css" rel="stylesheet"> | ||
|
||
<link href="https://brycemeng.com/theme/css/pygments/native.css" rel="stylesheet"> | ||
<link rel="stylesheet" href="https://brycemeng.com/theme/css/style.css" type="text/css"/> | ||
|
||
|
||
|
||
|
||
</head> | ||
<body> | ||
|
||
<div class="navbar navbar-default navbar-fixed-top" role="navigation"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a href="https://brycemeng.com/" class="navbar-brand"> | ||
<img class="img-responsive pull-left gap-right" src="https://brycemeng.com/images/favicon.png" width="24"/> TechLoveDeath </a> | ||
</div> | ||
<div class="collapse navbar-collapse navbar-ex1-collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li > | ||
<a href="https://brycemeng.com/category/android.html">Android</a> | ||
</li> | ||
<li > | ||
<a href="https://brycemeng.com/category/misc.html">Misc</a> | ||
</li> | ||
<li > | ||
<a href="https://brycemeng.com/category/music.html">Music</a> | ||
</li> | ||
<li class="active"> | ||
<a href="https://brycemeng.com/category/quant.html">Quant</a> | ||
</li> | ||
<li > | ||
<a href="https://brycemeng.com/category/tech.html">Tech</a> | ||
</li> | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right"> | ||
</ul> | ||
</div> | ||
<!-- /.navbar-collapse --> | ||
</div> | ||
</div> <!-- /.navbar --> | ||
|
||
<!-- Banner --> | ||
<!-- End Banner --> | ||
|
||
<!-- Content Container --> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-9"> | ||
<section id="content"> | ||
<article> | ||
<header class="page-header"> | ||
<h1> | ||
<a href="https://brycemeng.com/async-and-multithread-programming-1-async.html" | ||
rel="bookmark" | ||
title="Permalink to Async and multithread programming - 1 Async"> | ||
Async and multithread programming - 1 Async | ||
</a> | ||
</h1> | ||
</header> | ||
<div class="entry-content"> | ||
<div class="panel"> | ||
<div class="panel-body"> | ||
<footer class="post-info"> | ||
<span class="label label-default">Date</span> | ||
<span class="published"> | ||
<i class="fa fa-calendar"></i><time datetime="2024-05-21T18:32:00+08:00"> Tue 21 May 2024</time> | ||
</span> | ||
|
||
|
||
|
||
|
||
|
||
<span class="label label-default">Tags</span> | ||
<a href="https://brycemeng.com/tag/quant.html">Quant</a> | ||
|
||
</footer><!-- /.post-info --> </div> | ||
</div> | ||
<h1>content</h1> | ||
<ol> | ||
<li>What is asynchronous programming? (JavaScript)</li> | ||
<li></li> | ||
</ol> | ||
<h1>background</h1> | ||
<p>我们这个系列主要是讲异步和多线程。异步和多线程本质上来讲都是为了充分的利用计算资源。</p> | ||
<p>当CPU单核主频的发展速度达到瓶颈之后,往多核CPU发展。同时GPU的并行运算给LLM的发展有着极大的促进作用。当然我这一个系列主要是讲CPU,这里我只是想表明并行计算这个概念在现在这个时代非常重要。</p> | ||
<p>那么异步编程是指什么?它和多线程是什么关系?多线程与硬件的关系是什么?异步编程&多线程编程与并行计算又有什么关系?我们将通过这个系列搞清楚这些问题。</p> | ||
<p># relative resources</p> | ||
<p><a href="https://x.com/DrJimFan/status/1791514371086250291">GPU programming from Jim Fan</a></p> | ||
</div> | ||
<!-- /.entry-content --> | ||
<section class="well" id="related-posts"> | ||
<h4>Related Posts:</h4> | ||
<ul> | ||
<li><a href="https://brycemeng.com/some_exp_of_two_arg_strategy.html">最近的一些经验总结</a></li> | ||
<li><a href="https://brycemeng.com/AdvFinML-Standard-Bars.html">AdvFinML - Standard Bars</a></li> | ||
<li><a href="https://brycemeng.com/something-about-financial-analysis.html">财务分析相关</a></li> | ||
<li><a href="https://brycemeng.com/hidden-markov-model.html">HMM 稳形马尔科夫</a></li> | ||
<li><a href="https://brycemeng.com/numpy-version-pandas-ewm-mean-var.html">numpy pandas ewm mean/var</a></li> | ||
</ul> | ||
</section> | ||
</article> | ||
</section> | ||
|
||
</div> | ||
<div class="col-sm-3" id="sidebar"> | ||
<aside> | ||
<!-- Sidebar --> | ||
<section class="well well-sm"> | ||
<ul class="list-group list-group-flush"> | ||
|
||
<!-- Sidebar/Social --> | ||
<li class="list-group-item"> | ||
<h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Social</span></h4> | ||
<ul class="list-group" id="social"> | ||
<li class="list-group-item"><a href="https://github.com/mhxueshan"><i class="fa fa-github-square fa-lg"></i> Github</a></li> | ||
</ul> | ||
</li> | ||
<!-- End Sidebar/Social --> | ||
|
||
<!-- Sidebar/Tag Cloud --> | ||
<li class="list-group-item"> | ||
<a href="https://brycemeng.com/"><h4><i class="fa fa-tags fa-lg"></i><span class="icon-label">Tags</span></h4></a> | ||
<ul class="list-group list-inline tagcloud" id="tags"> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/101alpha.html">101Alpha</a> | ||
</li> | ||
<li class="list-group-item tag-3"> | ||
<a href="https://brycemeng.com/tag/adb.html">adb</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/advfinml.html">AdvFinML</a> | ||
</li> | ||
<li class="list-group-item tag-2"> | ||
<a href="https://brycemeng.com/tag/android.html">Android</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/cryptocurrency.html">Cryptocurrency</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/elite3.html">Elite3</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/english.html">English</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/fifthcircle.html">fifthcircle</a> | ||
</li> | ||
<li class="list-group-item tag-2"> | ||
<a href="https://brycemeng.com/tag/fun.html">Fun</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/futures.html">Futures</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/genetic-algorithm.html">Genetic Algorithm</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/hidden-markov.html">Hidden Markov</a> | ||
</li> | ||
<li class="list-group-item tag-2"> | ||
<a href="https://brycemeng.com/tag/hifi.html">Hifi</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/kalman-filter.html">Kalman Filter</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/life.html">Life</a> | ||
</li> | ||
<li class="list-group-item tag-3"> | ||
<a href="https://brycemeng.com/tag/math.html">Math</a> | ||
</li> | ||
<li class="list-group-item tag-1"> | ||
<a href="https://brycemeng.com/tag/misc.html">Misc</a> | ||
</li> | ||
<li class="list-group-item tag-2"> | ||
<a href="https://brycemeng.com/tag/ml.html">ML</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/mongodb.html">Mongodb</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/monkey.html">monkey</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/music.html">Music</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/numpy.html">Numpy</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/optimization.html">Optimization</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/pandas.html">Pandas</a> | ||
</li> | ||
<li class="list-group-item tag-3"> | ||
<a href="https://brycemeng.com/tag/python.html">Python</a> | ||
</li> | ||
<li class="list-group-item tag-1"> | ||
<a href="https://brycemeng.com/tag/quant.html">Quant</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/router.html">Router</a> | ||
</li> | ||
<li class="list-group-item tag-3"> | ||
<a href="https://brycemeng.com/tag/stats.html">Stats</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/stock.html">Stock</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/system.html">System</a> | ||
</li> | ||
<li class="list-group-item tag-2"> | ||
<a href="https://brycemeng.com/tag/tech.html">Tech</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/tech-indicator.html">Tech Indicator</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/time-series.html">Time Series</a> | ||
</li> | ||
<li class="list-group-item tag-3"> | ||
<a href="https://brycemeng.com/tag/translation.html">Translation</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/trap.html">Trap</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/ubuntu.html">Ubuntu</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/vm.html">VM</a> | ||
</li> | ||
<li class="list-group-item tag-4"> | ||
<a href="https://brycemeng.com/tag/wu-du-quan.html">五度圈</a> | ||
</li> | ||
</ul> | ||
</li> | ||
<!-- End Sidebar/Tag Cloud --> | ||
|
||
<!-- Sidebar/Links --> | ||
<li class="list-group-item"> | ||
<h4><i class="fa fa-external-link-square fa-lg"></i><span class="icon-label">Links</span></h4> | ||
<ul class="list-group" id="links"> | ||
<li class="list-group-item"> | ||
<a href="http://makerchen.com" target="_blank">MakerChen</a> | ||
</li> | ||
</ul> | ||
</li> | ||
<!-- End Sidebar/Links --> | ||
</ul> | ||
</section> | ||
<!-- End Sidebar --> </aside> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- End Content Container --> | ||
|
||
<footer> | ||
<div class="container"> | ||
<hr> | ||
<div class="row"> | ||
<div class="col-xs-10">© 2024 Bryce | ||
· Powered by <a href="https://github.com/getpelican/pelican-themes/tree/master/pelican-bootstrap3" target="_blank">pelican-bootstrap3</a>, | ||
<a href="http://docs.getpelican.com/" target="_blank">Pelican</a>, | ||
<a href="http://getbootstrap.com" target="_blank">Bootstrap</a> </div> | ||
<div class="col-xs-2"><p class="pull-right"><i class="fa fa-arrow-up"></i> <a href="#">Back to top</a></p></div> | ||
</div> | ||
</div> | ||
</footer> | ||
<script src="https://brycemeng.com/theme/js/jquery.min.js"></script> | ||
|
||
<!-- Include all compiled plugins (below), or include individual files as needed --> | ||
<script src="https://brycemeng.com/theme/js/bootstrap.min.js"></script> | ||
|
||
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) --> | ||
<script src="https://brycemeng.com/theme/js/respond.min.js"></script> | ||
|
||
|
||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.