<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Multithreading | Lemieux&#39;s Lab</title>
    <link>https://lemieux.iric.ca/en/tag/multithreading/</link>
      <atom:link href="https://lemieux.iric.ca/en/tag/multithreading/index.xml" rel="self" type="application/rss+xml" />
    <description>Multithreading</description>
    <generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Fri, 08 Aug 2025 00:00:00 +0000</lastBuildDate>
    <image>
      <url>https://lemieux.iric.ca/media/icon_hu56480358ab020a3cbd2b2e63f8640e6d_10170_512x512_fill_lanczos_center_3.png</url>
      <title>Multithreading</title>
      <link>https://lemieux.iric.ca/en/tag/multithreading/</link>
    </image>
    
    <item>
      <title>Multithreading</title>
      <link>https://lemieux.iric.ca/en/workshop-description/25-08-08-nicolas/</link>
      <pubDate>Fri, 08 Aug 2025 00:00:00 +0000</pubDate>
      <guid>https://lemieux.iric.ca/en/workshop-description/25-08-08-nicolas/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://lemieux.iric.ca/en/author/nicolas-jacquin&#34;&gt;&lt;strong&gt;Nicolas Jacquin&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Multithreading allows a program to run &lt;strong&gt;multiple computations at the same time&lt;/strong&gt; on separate CPU cores. This is especially useful for &lt;strong&gt;CPU-bound tasks&lt;/strong&gt; where raw computing power is the bottleneck.&lt;/p&gt;
&lt;p&gt;In Julia, multithreading is enabled with the environment variable JULIA_NUM_THREADS, and used via macros like Threads.@threads and Threads.@spawn.&lt;/p&gt;
&lt;p&gt;The goal is to split work into smaller, independent parts that can be safely computed in parallel.&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;ll also talk about asynchronous programming, which defines coroutines running at the same time on a single thread, and able to yield control to each other while they wait for something.&lt;/p&gt;
&lt;h4 id=&#34;downloadable-content&#34;&gt;Downloadable content&lt;/h4&gt;
&lt;p&gt;Notebook: &lt;a href=&#34;https://lemieux.iric.ca/downloads/workshop-25-08-08/multithreading_workshop.jl&#34;&gt;julia&lt;/a&gt; | &lt;a href=&#34;https://lemieux.iric.ca/downloads/workshop-25-08-08/multithreading_workshop.pdf&#34;&gt;pdf&lt;/a&gt; | &lt;a href=&#34;https://lemieux.iric.ca/downloads/workshop-25-08-08/multithreading_workshop.html&#34;&gt;html&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
