Microsoft MVP성태의 닷넷 이야기
Visual C++ : 17. overwrite_buffer, unbounded_buffer, combinable [링크 복사], [링크+제목 복사],
조회: 17247
글쓴 사람
정성태 (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)
269정성태5/4/200611978Visual Studio 2005 Team System Level 200 Course Material
268정성태5/4/200612359Microsoft Component Installer Software Development Kit for Windows (x86) Version 2.0
267정성태5/4/200612357101 Code Samples for Visual Basic 2005
266정성태5/3/200614314Consolas Font Pack for Microsoft Visual Studio 2006 [2]
264정성태5/1/200613792Team System for C++ Developers
262정성태5/1/200623871Registry 등록 없이 COM 개체 사용 [1]파일 다운로드2
261정성태4/30/2006135124GB 메모리 인식 [2]
259정성태4/30/200612249Building ASP.NET 2.0 Web Sites Using Web Standards
260정성태4/30/200611708    답변글 XHTML Validator Modulle
258정성태4/29/200612257WebServiceStudio 2.0
263정성태5/1/200611765    답변글 Calling an Arbitrary Web Service
257정성태4/29/200611724TypeForwardedToAttribute
256정성태4/29/200611959Windows API - Using Condition Variables
252정성태4/26/200611938한글 관련 메세지 정리파일 다운로드1
251정성태4/26/200612603IIS 7.0 에서 소개되는 새로운 기능들 [1]
250정성태4/25/200613212툴 소개: VisualNDepend
249정성태4/25/200619216Integrating a debugger into Reflector
265정성태5/1/200613518    답변글 Deblector: First Version
285정성태5/15/200611535    답변글 New Deblector version ( an Add-In to debug with reflector )
248정성태4/21/200611888VS.NET 2005 Add-In : CSS Properties Window
247정성태4/21/200611743VS.NET 2005 Add-In : Spell Checker for HTML and ASP.NET pages
244정성태4/19/200611647SQL Server 2005 Service Pack 1
241정성태4/19/200611156VSTS Annotations for C++: Beyond Just Documenting Method Behavior [1]파일 다운로드1
240정성태4/18/200611771Accessing System Power and Network Status Using SENS
253정성태4/29/200611980    답변글 [HowToUse]: Accessing System Power and Network Status Using SENS
239정성태4/18/200611607Display a Web Page in a Plain C Win32 Application
... 31  32  33  34  35  36  [37]  38  39  40  41  42  43  44  45  ...