Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 옵저버 패턴
- multi-core
- 멀티코어 프로그래밍
- 쓰레드
- 복사생성자
- Multithread
- 스마트포인터
- 유니크포인터
- vector
- Unreal
- 멀티쓰레드
- 메모리관리
- 게임공학과
- 멀티코어
- observer pattern
- c++
- Atomic
- stl
- 디자인패턴
- 한국산업기술대학교
- 옵저버
- 프레임워크
- MultiCore
- random access
- thread
- sequential
- C
- Design Pattern
- EFFECTIVE C++
- material
Archives
- Today
- Total
목록Critical section (1)
태크놀로지
멀티쓰레드 프로그래밍으로 덧셈프로그램 만들기
한국산업기술대학교 게임공학부 정내훈 교수님 멀티코어 2주차 강의 멀티쓰레드 프로그래밍에서 중요한사항 올바른 결과가 나와야한다. 싱글 쓰레드보다 성능향상이 커야한다. 실습1 - 여러 쓰레드 생성 #include #include #include using namespace std; int sum = 0; void f() { for (int i = 0; i < 2500'0000; ++i) sum += 2; } int main() { vector threads; for (int i = 0; i < 2; ++i) threads.emplace_back(f); for (auto& t : threads) t.join(); cout
멀티코어
2020. 9. 8. 20:27