diff options
| author | crupest <crupest@outlook.com> | 2021-06-11 11:34:16 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-06-11 11:34:16 +0800 | 
| commit | 2c7ceca3e58543c36098fd46de711d9cd80a4d12 (patch) | |
| tree | 5f4e4f05ff47071c685d463af44e719a7efa6bda /works/life | |
| parent | e9cfa972d7ffd09584b678b42cb60bf50b8efa92 (diff) | |
| download | crupest-2c7ceca3e58543c36098fd46de711d9cd80a4d12.tar.gz crupest-2c7ceca3e58543c36098fd46de711d9cd80a4d12.tar.bz2 crupest-2c7ceca3e58543c36098fd46de711d9cd80a4d12.zip | |
import(life): ...
Diffstat (limited to 'works/life')
| -rw-r--r-- | works/life/operating-system-experiment/ParallelCalculationDemo.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/works/life/operating-system-experiment/ParallelCalculationDemo.cpp b/works/life/operating-system-experiment/ParallelCalculationDemo.cpp index 31ff2bf..7340da8 100644 --- a/works/life/operating-system-experiment/ParallelCalculationDemo.cpp +++ b/works/life/operating-system-experiment/ParallelCalculationDemo.cpp @@ -41,7 +41,7 @@ int main(int argc, char **argv) {        if (i == thread_number - 1) {          threads[i] = cru::Thread([&ps, start] {            long long sum = 0; -          for (long long j = start; j <= 1e9; j++) { +          for (long long j = start; j <= N; j++) {              sum += j;            }            ps = sum; | 
