Microsoft MVP성태의 닷넷 이야기
Visual C++ : 17. overwrite_buffer, unbounded_buffer, combinable [링크 복사], [링크+제목 복사],
조회: 17232
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 


overwrite_buffer, unbounded_buffer, combinable


Visual Studio 2010 과 함께 "다중 작업" 에 대한 지원이 Native/Managed 모두에서 소개되고 있습니다.

재미있는 것은, 2가지 모두 "개념"을 풀이하는 접근방식이 비슷하다는 것입니다. 이 때문에 비록 닷넷 개발자라고 하더라도 Visual C++ 에 추가된 다중 작업 프로그래밍을 이해하면 덩달아 .NET 언어 영역에서도 이해가 됩니다.

실제로, 이번에 추가되는 "Asynchronous Agents Library"를 보면 Axum 에서 소개된 용어와 겹치는 것을 볼 수가 있지요.




하나씩 하나씩 시간 날때 마다 틈틈이 공부하시는데, 우선 C++ 하시는 분들은 제목에 소개된 3가지 overwrite_buffer, unbounded_buffer, combinable 버퍼는 이번에 익혀보시는 것도 좋겠습니다.

마침, combinable에 대해서는 다음에 잘 소개가 되고 있습니다.

Parallel Patterns Library(PPL) - combinable
; http://vsts2010.net/148

처음에 combinable 을 보고 깜짝 놀랬습니다. for 문에서의 동기화 병목현상을 해결하기 위해 TLS를 생각해내다니... 늘 TLS를 알고 있으면서도 저 같은 경우에는 for 문의 동기화 병목현상을 해결하는 데 사용할 수 있을 거라고는 생각지 못했었습니다.

다음의 글을 읽으면, overwrite_buffer와 unbounded_buffer버퍼의 차이점을 예제와 함께 소개하고 있습니다. (사실, 이 글은 그 이외에도 다중 작업에 대한 재미있는 내용이 많이 있으니 꼭 읽어보시기 바랍니다.)

Four Ways to Use the Concurrency Runtime in Your C++ Projects
- Managing Shared State with Message Blocks
; http://msdn.microsoft.com/en-us/magazine/ee309514.aspx

혹시나, Axum을 맛보고 싶다면, 위의 C++ 글을 먼저 읽어본 후에 다음의 글을 읽어보실 것을 권합니다.

The Polyglot Programmer
- Concurrency with Channels, Domains and Messages
; http://msdn.microsoft.com/en-us/magazine/ee412254.aspx

이어서, 위의 Axum 글을 읽고 나면 "철학자들의 식사"문제에 관한 VC++ 구현 방식이 조금씩 눈에 들어옵니다. ^^

Asynchronous Agents Library로 Dining Philosophers 문제 해결하기 - 1
; http://vsts2010.net/120

Asynchronous Agents Library로 Dining Philosophers 문제 해결하기 - 2 
; http://vsts2010.net/129




[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 11/11/2009]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
213정성태4/13/200611138Introduction to the MSN Messenger Activity SDK
212정성태4/13/200613191FIN_WAIT_2 상태에 대하여
211정성태4/13/200611772Override CLR Assembly Probing Logic
210정성태4/13/200612187Web.config의 기본 <appSettings /> Handler 교체
209정성태3/25/200612043Win32 FileID API Library
208정성태4/13/200611558(거의)모든 DB 에 대한 ADO.NET Data Provider (유료)목록
205정성태4/13/200611692Static Code Analyzer
206정성태4/13/200611390    답변글 Visual C++ Express를 사용한 보안 응용 프로그램 빌드
203정성태4/13/200611099WGF (Windows Graphic Foundation) [1]
202정성태4/13/200611175사용자 컴퓨터 환경 조사 결과(외국 사례)
201정성태4/13/200616495MySQLDirect .NET Data Provider
207정성태4/13/200610650    답변글 무료: Download Connector/Net 1.0 (MySQL) [1]
200정성태4/13/200611149Understanding Classic COM Interoperability With .NET Applications파일 다운로드1
199정성태4/13/200611510How to get a V2.0 ICorDebug object
198정성태4/13/200611499Whidbey breaking change --- Caching binding failures [1]
197정성태4/13/200610881The JIT does dead-code elimination in Debuggable code
195정성태4/13/200610841910442 - Working with Web Resources in ASP.NET 2.0
194정성태4/13/200611463ASP.NET 2.0 WebPart - SQL Server Error 26: Error Locating Server/Instance Specified
193정성태4/13/200611516WCF - Breaking Changes between Jan CTP and Feb CTP파일 다운로드1
192정성태4/13/200610992Cassini Update
191정성태4/13/200612049LeechBlocker ISAPI Filter
189정성태4/13/200611240The New Anonymous Types Feature in C# 3.0 [1]
188정성태3/8/200611368Microsoft Anti-Cross Site Scripting Library V1.0
196정성태4/13/200610813    답변글 왜 사용해야 하는가?
187정성태4/13/200610752제 1회 INETA 세미나
186정성태4/13/200611310Internet Information Services (IIS) 6.0 Manager for Windows XP
... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...