speice.io/_notebooks/2022-10-15-multicast/Multicast.ipynb

70 lines
2.0 KiB
Plaintext

{
"cells": [
{
"cell_type": "markdown",
"id": "2bfdffd8",
"metadata": {},
"source": [
"# No More Magic: A Practical Introduction to Multicast\n",
"\n",
"Recent interaction - had a networking issue, likely required configuration tweaking, but:\n",
"\n",
"- Not a lot of people who knew how to diagnose\n",
"- Training people to diagnose is challenging\n",
"\n",
"I've said that [High Performance Systems aren't magical](/2019/07/high-performance-systems.html), but realization that for many topics, accessibility is problematic. If I _wanted_ to know more, I don't have any meaningful way to investigate beyond asking for someone's time. While manager's judgment call is fine (\"this isn't worth investigating further\"), I've had a lot of career \"upskilling\" learned from open source. Want to make sure that if other people are interested, there's a way to meaningfully engage with the topic."
]
},
{
"cell_type": "markdown",
"id": "d8cee425",
"metadata": {},
"source": [
"Add links for:\n",
"- Notebook source\n",
"- Script for running the notebook"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "2edfbd79-d246-4b9a-a4a3-8e383c6b22a1",
"metadata": {},
"outputs": [],
"source": [
"#include <cstdlib>\n",
"#include <thread>\n",
"#include <vector>\n",
"\n",
"auto run_parallel(std::initializer_list<const char*> commands) {\n",
" \n",
"}\n",
"\n",
"std::vector<std::thread> threads{};\n",
"\n",
"for (auto command : commands)\n",
" threads.emplace_back([=]() { std::system(command); });\n",
"\n",
"for (auto& thread : threads)\n",
" thread.join();"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "C++17",
"language": "C++17",
"name": "xcpp17"
},
"language_info": {
"codemirror_mode": "text/x-c++src",
"file_extension": ".cpp",
"mimetype": "text/x-c++src",
"name": "c++",
"version": "17"
}
},
"nbformat": 4,
"nbformat_minor": 5
}