Microsoft MVP성태의 닷넷 이야기
Visual C++ : 17. overwrite_buffer, unbounded_buffer, combinable [링크 복사], [링크+제목 복사],
조회: 10901
글쓴 사람
정성태 (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]


비밀번호

댓글 작성자
 




... 16  17  18  19  20  21  22  23  24  25  26  27  28  29  [30]  ...
NoWriterDateCnt.TitleFile(s)
450정성태9/28/20069617.NET : 16. ADO.NET vNext Entity Data Model Designer Prototype, CTP
449정성태9/28/200610526TFS : 37. Team Foundation Server and Basic Authentication
448정성태9/28/200610094TFS : 36. Moving the Team Foundation Server Data Warehouse to a Separate Server
447정성태10/20/200610215Vista : 10. ASLR이 적용된 Vista
446정성태9/26/200610010개발환경 구성 : 31. Profiling Tool for .NET Developers
445정성태10/20/20069670Windows 2008 : 2. LHS Feature Of The Week #2 - Remote Differential Compression
444정성태10/20/200610232Windows 2008 : 1. LHS Feature Of The Week #1 - Transactional NTFS
443정성태9/23/200610120개발환경 구성 : 30. Tip/Trick: Optimizing ASP.NET 2.0 Web Project Build Performance with VS 2005
442정성태9/28/200610689TFS : 35. 설치 설명서 / 관리자 가이드 도움말 업데이트
441정성태9/21/200611175개발환경 구성 : 29. SQL Server Spec 비교
440정성태10/20/200610568.NET 3.0 : 3. WCF Workshops updated to Release Candidate 1
439정성태9/20/200610562개발환경 구성 : 28. Caml Viewer 2007 : released on Codeplex
438정성태9/20/200610331개발환경 구성 : 27. Enterprise Smart Card Deployment in the Microsoft® Windows® Smart Card Framework
437정성태9/19/200610267TFS : 34. Getting Started with TFS Integrator 파일 다운로드2
434정성태9/20/200610980개발환경 구성 : 26. Developing Web Applications on Windows Vista with Visual Studio 2005
433정성태10/20/200610423Vista : 9. Next Generation TCP/IP Stack
432정성태9/16/200610304TFS : 33. Now Available: Teamprise V2 Preview 2
431정성태9/16/20069944개발환경 구성 : 25. Announcing the Web Client Software Factory
430정성태9/15/200610291.NET : 15. ASP.NET 2.0 - A Preview of Web LINQ - BLINQ
429정성태9/15/20069875The True Cost of .NET Exceptions
428정성태9/15/200611668.NET : 14. IronPython 예제들
427정성태9/14/200611168개발환경 구성 : 24. Smart Start and Stop Service in VS.NET Build
426정성태9/13/200610593TFS : 32. Team Foundation Server Language Change Package
425정성태9/12/200610444TFS : 31. Team Foundation Administrator's Guide (TFSAdmin.chm)
424정성태9/12/200611113Visual C++ : 2. Managed Debugger Expression Evaluator - mcee_mc.dat
422정성태9/8/200611013.NET : 13. An Introduction to LINQ
... 16  17  18  19  20  21  22  23  24  25  26  27  28  29  [30]  ...