検索

phrase: max: clip:
target: order:
Results of 1 - 8 of about 8 for thread (0.018 sec.)
チャネル - Rust By Example 日本語版 11983
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... :{Sender, Receiver}; use std::sync::mpsc; use std::thread; static NTHREADS: i32 = 3; fn main() { // Channels ... el(); let mut children = Vec::new(); for id in 0..NTHREADS { // The sender endpoint can be copied // 送信者エ ... ンドポイントはコピーすることができる。 let thread_tx = tx.clone(); // Each thread will send its id v ... ぞれのスレッドが自身のIDを送信している。 let child = thread::spawn(move || { // The thread takes ownership ove ...
https://man.plustar.jp/rust/example/std_misc/channels.html - [similar]
Testcase: map-reduce - Rust By Example 日本語版 11838
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ch an attempt. The standard library provides great threading primitives out of the box. These, combined with ... u from manipulating state that is visible to other threads. (Where synchronisation is needed, there are sync ... parcelling out chunks of the block into different threads. Each thread will sum its tiny block of digits, a ... we will sum the intermediate sums produced by each thread. Note that, although we're passing references acro ...
https://man.plustar.jp/rust/example/std_misc/threads/testcase_mapreduce.html - [similar]
スレッド - Rust By Example 日本語版 9850
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ージャを返す関数][fn_output]を参照)です。 use std::thread; const NTHREADS: u32 = 10; // This is the `main` t ... ためのベクタ let mut children = vec![]; for i in 0..NTHREADS { // Spin up another thread // 新しいスレッドを起 ... 動 children.push(thread::spawn(move || { println!("this is thread number { ... i); })); } for child in children { // Wait for the thread to finish. Returns a result. // 子スレッドが終了す ...
https://man.plustar.jp/rust/example/std_misc/threads.html - [similar]
Arc - Rust By Example 日本語版 8061
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Example 日本語版 Arc When shared ownership between threads is needed, Arc (Atomic Reference Counted) can be ... reference counter. As it shares ownership between threads, when the last reference pointer to a value is ou ... variable is dropped. use std::sync::Arc; use std::thread; fn main() { // This variable declaration is where ... n the memory heap. let apple = Arc::clone(&apple); thread::spawn(move || { // As Arc was used, threads can b ...
https://man.plustar.jp/rust/example/std/arc.html - [similar]
定数 - Rust By Example 日本語版 7717
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ain() { let n = 16; // Access constant in the main thread // main 関数の中から定数を参照 println!("This is { ...
https://man.plustar.jp/rust/example/custom_types/constants.html - [similar]
panic! - Rust By Example 日本語版 7663
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... copyright info ==4401== Command: ./panic ==4401== thread '<main>' panicked at 'division by zero', panic.rs: ...
https://man.plustar.jp/rust/example/std/panic.html - [similar]
Unit testing - Rust By Example 日本語版 7663
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ok failures: ---- tests::test_bad_add stdout ---- thread 'tests::test_bad_add' panicked at 'assertion faile ...
https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
Rust By Example 日本語版 7446
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ain() { let n = 16; // Access constant in the main thread // main 関数の中から定数を参照 println!("This is { ...
https://man.plustar.jp/rust/example/print.html - [similar]
PREV 1 NEXT