Claims (6)
중앙처리장치와, 입출력장치와, 주기억장치 등의 일련의 컴퓨터 하드웨어와 응용프로그램을 사용하여 시스템 호출을 요청하는 제1단계 ; 상기 제1단계의 시스템 호출에 따른 커널의 서비스를 요구하기 위하여 메모리 관리 프리미티브인 라이브러리를 호출하는 제2단계 ; 상기 라이브러리의 호출시 특권을 부여하여 커널 내부로 들어가기 위한 메모리 관련 메시지를 접수하여 교환하는 제3단계 ; 상기 제3단계의 메모리 관련 메시지를 수신하여 커널모드에서 메모리 관련 메시지의 종류 및 서비스를 해석한 후, 상기 메모리 관련 메시지를 사용자모드로 전송하는 제4단계 ; 및 상기 제4단계의 메모리 관련 메시지에 적합한 알고리즘의 결과값을 커널모드로 전송하여 동적 메모리 할당을 수행한 후 상기 응용프로그램에 전송하는 제5단계를 포함하는 메시지 교환을 통한 커널에서의 실메모리 관리방법 및 장치.A first step of requesting a system call using a series of computer hardware and application programs such as a central processing unit, an input / output unit, and a main memory unit; A second step of calling a library which is a memory management primitive in order to request a service of a kernel according to the system call of the first step; A third step of accepting and exchanging a memory related message for entering a kernel by granting a privilege at the time of calling the library; A fourth step of receiving the memory-related message of the third step, analyzing the type and service of the memory-related message in kernel mode, and then transmitting the memory-related message in the user mode; And a fifth step of transmitting a result value of an algorithm suitable for the memory-related message of the fourth step in kernel mode to perform dynamic memory allocation and then transmitting the dynamic memory allocation to the application program. Method and apparatus.
중앙처리장치, 입출력장치, 주기억장치 등의 일련의 컴퓨터 하드웨어와 시스템 호출을 요청하는 사용자 태스크를 구비하는 메시지 교환을 통한 커널에서의 실메모리 관리장치에 있어서, 사용자 태스크의 시스템 호출에 따라 커널에서 사용할 수 있는 형태의 메시지를 사용자 스택에 구성하여 메시지 구성 트랩을 유발시키는 메모리 관리 프리미티브인 라이브러리 ; 상기 라이브러리를 호출할 경우 특권을 부여하여 커널로 들어가기 위한 메모리 관련 메시지를 접수하는 트랩처리부 ; 메시지 구성 트랩에 의해 커널 내부에 요구된 서비스를 해당 관리자 태스크에 전송하기 위해 메모리 관련 메시지를 교환하는 메시지 교환부 ; 상기 메시지 교환부로부터 메모리 관련 메시지를 수신하여 메모리 관련 메시지의 종류 및 서비스를 해석하여 상기 메시지 교환부로 전송하며, 사용자모드의 메모리 관리자 태스크의 결과값에 따라서 동적 메모리 할당을 수행하는 커널모드의 메모리 관리자 태스크 ; 및 상기 커널모드의 메모리 관리자에 의해 요청된 메모리 관련 메시지를 수신하여, 동적 메모리 할당 알고리즘을 수행한 후 상기 라이브러리로 전송하는 사용자모드의 메모리 관리자 태스크를 포함하는 메시지 교환을 통한 커널에서의 실메모리 관리장치.A real memory management device in the kernel through message exchange having a series of computer hardware such as a central processing unit, an input / output device, a main memory, and a user task requesting a system call. A library that is a memory management primitive that organizes messages in the user stack into message stacks and causes message configuration traps; A trap processing unit for receiving a memory related message for entering a kernel by granting a privilege when calling the library; A message exchange unit for exchanging memory-related messages to transmit a service required in the kernel by a message configuration trap to a corresponding administrator task; Receives a memory-related message from the message exchanger, interprets the type and service of a memory-related message, transmits the message to the message exchanger, and performs a dynamic memory allocation according to a result of a memory manager task in a user mode. Task; And a memory manager task of a user mode that receives a memory related message requested by the kernel mode memory manager, performs a dynamic memory allocation algorithm, and transmits the same to the library. Device.
제2항에 있어서, 상기 사용자 모드의 메모리 관리자 태스크는 다양한 동적 메모리 할당 알고리즘을 보유하며, 상기 커널모드의 메모리 관리자 태스크는 동적 메모리 할당 알고리즘을 제외한 메모리 관리에 필요한 기능을 보유함을 특징으로 하는 메시지 교환을 통한 커널에서의 실메모리 관리장치.The message of claim 2, wherein the memory manager task of the user mode has various dynamic memory allocation algorithms, and the memory manager task of the kernel mode has functions necessary for memory management except for the dynamic memory allocation algorithm. Real memory management in the kernel through swapping.
제2항에 있어서, 상기 사용자 모드의 메모리 관리자 태스크와 상기 커널모드의 메모리 관리자 태스크는 시스템 호출을 사용하며 상호 메시지를 교환함을 특징으로 하는 메시지 교환을 통한 커널에서의 실메모리 관리장치.3. The apparatus of claim 2, wherein the memory manager task in the user mode and the memory manager task in the kernel mode use system calls to exchange messages with each other.
제2항에 있어서, 상기 사용자 모드의 메모리 관리자 태스크는 커널 외부에서 구동되며 사용자가 임의의 동적 메모리 할당 알고리즘을 구현함을 특징으로 하는 메시지 교환을 통한 커널에서의 실메모리 관리장치.3. The apparatus of claim 2, wherein the memory manager task of the user mode is executed outside the kernel and the user implements an arbitrary dynamic memory allocation algorithm.
제2항에 있어서, 상기 커널모드의 메모리 관리자 태스크는 죤 생성함수 호출시 동적 할당방법에 대한 정책정보를 인자로 넘겨주고, 상기 사용자 모드의 메모리 관리자 태스크에서 동적 할당방법에 대한 정책정보를 이용하여 해당 알고리즘을 구동함을 특징으로 하는 메시지 교환을 통한 커널에서의 실메모리 관리장치.The memory manager task of claim 2, wherein the memory manager task of the kernel mode passes policy information on the dynamic allocation method as a parameter when the zone creation function is called, and uses the policy information on the dynamic allocation method on the memory manager task of the user mode. Real memory management device in the kernel through the message exchange, characterized in that for driving the algorithm.
※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: The disclosure is based on the initial application.