Moait
홈인기 피드모든 블로그모든 태그
홈인기 피드모든 블로그모든 태그
Is <code>Write­Process­Memory</code> faster than shared memory for transferring data between two processes? 섬네일

Is <code>Write­Process­Memory</code> faster than shared memory for transferring data between two processes?

Microsoft Developer faviconMicrosoft Developer·Architecture·
Windows APIShared MemoryWriteProcessMemoryIPCMemory Mapping
2025년 11월 19일0

AI 요약

이 글은 AI가 요약했어요. 정확한 내용은 꼭 원문을 확인해 주세요!

핵심 요약

Microsoft Developer가 WriteProcessMemory와 공유 메모리의 이론적 비교를 통해 대용량 데이터 전달의 구현 포인트와 보안, 원자성 이슈를 정리했습니다.

구현 방법

  • 데이터 흐름: 원본 소스 → 공유 버퍼 → 대상 프로세스 순으로 복사하는 가정을 제시
  • 공유 메모리의 특징: 메모리 매핑 기반으로 두 프로세스가 메모리에 직접 접근하되 원자성은 동기화로 확보
  • WriteProcessMemory의 특성: 내부적으로 두 차례 복사를 수행할 수 있으며, PROCESS_VM_WRITE 권한 필요
  • 보안/제약: 최소 권한 원칙과 버퍼 크기 제약 등 보완 포인트 제시

주요 결과

  • 이론적 트레이드오프를 설명하나 정량적 수치는 제시되지 않음
  • 두 방식의 복사 수 및 동시성 제약이 성능과 구현 난이도에 큰 영향을 미침
  • 실제 상황에 맞춘 검증이 필요

연관 피드

%가 높을수록 이 글과 비슷할 가능성이 높아요!
I can use <CODE>WM_<WBR>COPY<WBR>DATA</CODE> to send a block of data to another window, but how does it send data back? 섬네일
75%

I can use <CODE>WM_<WBR>COPY<WBR>DATA</CODE> to send a block of data to another window, but how does it send data back?

Microsoft Developer faviconMicrosoft Developer·2025년 11월 14일
How can I detect that Windows is running in S-Mode, redux 섬네일
59%

How can I detect that Windows is running in S-Mode, redux

Microsoft Developer faviconMicrosoft Developer·2025년 11월 17일
The Microsoft SoftCard for the Apple II: Getting two processors to share the same memory 섬네일
59%

The Microsoft SoftCard for the Apple II: Getting two processors to share the same memory

Microsoft Developer faviconMicrosoft Developer·2025년 11월 04일