Microsoft MVP성태의 닷넷 이야기
Visual C++ : 17. overwrite_buffer, unbounded_buffer, combinable [링크 복사], [링크+제목 복사],
조회: 17241
글쓴 사람
정성태 (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)
239정성태4/18/200611593Display a Web Page in a Plain C Win32 Application
238정성태4/17/200611528ASP.NET 2.0 의 Provider 관련 쪽 소스 공개
237정성태4/17/200611201Microsoft Application Verifier
236정성태4/17/200612452IIS6 - IE static resource caching problem
235정성태4/13/200611129"Atlas" Control Toolkit for April CTP Released
234정성태4/13/200611470Access Visual Studio 2005 Team System From Macintosh and UNIX Systems, and from within the Eclipse IDE
233정성태4/13/200611162More Workflow Videos
232정성태4/13/200612138Microsoft Visual C++ 2005 Redistributable Package
231정성태4/13/200611663Windows Presentation Foundation Hands-On-Labs - February 2006 CTP
230정성태4/13/200611503Microsoft Management Model Designer
229정성태4/13/200612504Discovery Wizard for SharePoint
228정성태4/13/200612035TeamPlain Web Access for Team System
227정성태4/13/200611870Scrum for Team System Released
226정성태4/13/200611773Visual Studio Team Foundation Server MSSCCI Provider Version 1.0
224정성태4/13/200611331VC++ - GroupLab Component Library
223정성태4/13/200610466MSBuild Community Tasks Project releases new version
225정성태4/13/20069878    답변글 Visual Studio 2005 Web Application Projects (RC1)
222정성태4/13/200610936Visual Studio 2005 Security Features and Tools
220정성태6/8/200610822Shared Source Common Language Infrastructure 2.0 Release [1]
219정성태8/4/200610652Simple List Extensions Specification
218정성태4/13/2006112773rd party library - EZShellExtensions.Net 1.0 [1]
217정성태4/13/200611049Bug Details: GC fails to load in server mode if config file contains none ASCII characters
215정성태4/13/200611199http://www.400plusdifferences.com/
214정성태4/13/20069686Team Foundation Server, Biztalk 2006
216정성태4/13/200611059    답변글 Team Foundation Server 시험판 공개 다운로드
213정성태4/13/200611143Introduction to the MSN Messenger Activity SDK
... 31  32  33  34  35  36  37  [38]  39  40  41  42  43  44  45  ...