• 제목/요약/키워드: Semaphore

검색결과 27건 처리시간 0.03초

Dual-Port SDRAM Optimization with Semaphore Authority Management Controller

  • Kim, Jae-Hwan;Chong, Jong-Wha
    • ETRI Journal
    • /
    • 제32권1호
    • /
    • pp.84-92
    • /
    • 2010
  • This paper proposes the semaphore authority management (SAM) controller to optimize the dual-port SDRAM (DPSDRAM) in the mobile multimedia systems. Recently, the DPSDRAM with a shared bank enabling the exchange of data between two processors at high speed has been developed for mobile multimedia systems based on dual-processors. However, the latency of DPSDRAM caused by the semaphore for preventing the access contention at the shared bank slows down the data transfer rate and reduces the memory bandwidth. The methodology of SAM increases the data transfer rate by minimizing the semaphore latency. The SAM prevents the latency of reading the semaphore register of DPSDRAM, and reduces the latency of waiting for the authority of the shared bank to be changed. It also reduces the number of authority requests and the number of times authority changes. The experimental results using a 1 Gb DPSDRAM (OneDRAM) with the SAM controllers at 66 MHz show 1.6 times improvement of the data transfer rate between two processors compared with the traditional controller. In addition, the SAM shows bandwidth enhancement of up to 38% for port A and 31% for port B compared with the traditional controller.

실시간 운영 체제에서 Recursive Semaphore 설계 및 구현 (Design and Implementation of Recursive Semaphore for Real-Time Operating Systems)

  • 이원용;김용희;손필창;이철훈
    • 한국정보과학회:학술대회논문집
    • /
    • 한국정보과학회 2005년도 가을 학술발표논문집 Vol.32 No.2 (1)
    • /
    • pp.922-924
    • /
    • 2005
  • 실시간 시스템의 개발 및 운영에 사용되는 실시간 운영체제는 여러 개의 태스크가 동시에 작업할 수 있는 멀티태스킹 환경과 각 태스크에 우선순위를 부여하여 가장 높은 우선순위의 태스크가 CPU 를 선점하는 스케줄링 방법, 그리고 태스크간 동기화 및 통신을 위한 메커니즘을 제공하고 있다. 또한 여러 태스크들에 의해 사용되는 공유자원을 관리하기 위해 세마포어(Semaphore)를 사용하여 태스크간 동기화를 제공한다. 그러나 하나의 태스크가 세마포어를 이용하여 공유자원에 대해 여러 번 접근 할 경우, 데드락(Deadlock)을 일으킬 소지가 많다. 본 논문에서는 실시간 운영체제인 $iRTOS^{TM}$ 에서 데드락을 방지하기 위한 재귀적 세마포어(Recursive Semaphore)를 설계 및 구현하였다.

  • PDF

A Distributed Processes Communication Control Mechanism Based on Monitor Concepts Implemented Through Simulation Using Semaphore

  • 김동규
    • 한국통신학회논문지
    • /
    • 제16권4호
    • /
    • pp.382-395
    • /
    • 1991
  • 범용의 분산 프로세스 통신제어 메커니즘은 통신하는 병렬 프로세스들을 동기시키는 데에 사용될 수 있는 일반적인 접근 방식이다. 이 메카니즘음 계층화된 통신구조와 프로토콜을 효율적으로 구현하기 위한 프레임워크를 제공할 수 있다. 모니터 설비가 제공되지 않는 제약된 환경에서 세마퍼를 이용하는 시뮬레이션을 통하여 이 메커니즘을 구현하였다.

  • PDF

An Efficient Semaphore Implementation Scheme for an Event

  • Sihn, Bong-sik;Han, Ki-Hee;Chong, Jong-Wha
    • 대한전자공학회:학술대회논문집
    • /
    • 대한전자공학회 2002년도 ITC-CSCC -1
    • /
    • pp.443-445
    • /
    • 2002
  • In this paper, we present a novel efficient semaphore implementation scheme which diminishes completion time of high priority tasks and improves reliability of a system. The real-time system is constrained to complete their tasks in time. Especially, the task of a hard real-time system must meet its deadline under unfavorable conditions. In this paper, the number and sort of the locked semaphores, when an event occurred, decide whether the context switch should occur or not, so higher priority tasks diminish in their completion time. The experimental results show that the proposed method gives performance improvements in finish time of high priority tasks of about 11% over the Zuberi.

  • PDF

이벤트를 고려한 효과적인 세마포어 구현 알고리듬 (An Efficient Semaphore Implementation Scheme with Event)

  • 한기희;신봉식;피찬호;정정화
    • 한국정보처리학회:학술대회논문집
    • /
    • 한국정보처리학회 2002년도 춘계학술발표논문집 (상)
    • /
    • pp.687-690
    • /
    • 2002
  • In this paper, we present a novel semaphore implementation scheme which shortens finish time of high priority tasks and improves reliability of a system. The real-time systems have time constraints. Especially, the task with hard real-time constraints must meet its deadline. Consequently, managing shared resources is considered guaranteeing mutual exclusion as well as meeting task's deadline under unfavorable condition. According to the number and sort of the locked semaphores under the event occurred, this paper presents the reduction of the finish time of high priority task by decision whether the context switched or not. The experimental results show that the proposed method gives performance improvements in finish time of high priority tasks of about 11% over zuberi[4] method.

  • PDF

Priority Ceiling Protocol을 이용한 Mutual Exclusion Semaphore 설계 및 구현 (Design and Implementation of Mutual Exclusion Semaphores Using The Priority Ceiling Protocol)

  • 안희중;박희상;이철훈
    • 한국정보처리학회:학술대회논문집
    • /
    • 한국정보처리학회 2002년도 추계학술발표논문집 (상)
    • /
    • pp.555-558
    • /
    • 2002
  • 실시간 시스템의 개발 및 운영에 사용되는 실시간 운영체제는 여러 개의 태스크가 동시에 작업할 수 있는 멀티태스킹 환경과 각 태스크에 우선순위를 부여하여 가장 높은 우선순위의 태스크가 CPU 를 선점하는 스케줄링 방법, 태스크간 동기화 및 통신을 위한 메커니즘을 제공하고 있다. 그리고 여러 태스크들에 의해 사용되는 공유자원을 관리하기 위해 세마포어를 사용하여 태스크간에 동기화를 제공한다. 하지만 세마포어만으로 공유자원을 관리하게 되면 더 높은 우선순위의 태스크가 실행 준비 되어 있음에도 불구하고 상대적으로 낮은 우선순위의 태스크가 CPU 를 선점하는 우선순위 역전이 발생하여 실시간 운영체제의 핵심인 시간 결정성을 만족하지 못해 시스템에 심각한 문제를 발생 시킬 수 있다. 본 논문에서는 실시간 운영체제인 $iRTOS^{TM}$에서 우선순위 역전을 예방하기 위한 방법중 하나인 Priority Ceiling Protocol을 이용한 Mutual Exclusion Semaphore를 설계하고 구현한 내용을 기술한다.

  • PDF

열차자율주행제어시스템을 위한 간격제어와 차상중심 분산형 연동 알고리즘 (Train interval control and train-centric distributed interlocking algorithm for autonomous train driving control system)

  • 오세찬;김경희;최현영
    • 한국산학기술학회논문지
    • /
    • 제17권11호
    • /
    • pp.1-9
    • /
    • 2016
  • 열차제어시스템은 지상 전기 중심에서 차상 통신 중심으로 변화하고 있다. 최신의 열차제어시스템인 CBTC 시스템은 차상과 지상시스템 간 양방향 무선통신을 기반으로 높은 간격제어 효율을 가진다. 하지만 지상이 제어의 중심이 되고 있기 때문에 하나의 지상시스템이 허용할 수 있는 열차 투입 대수가 제한되고 차상과 지상제어시스템 간 cyclic-path 제어흐름으로 인해 운전시격 단축에 한계를 가진다. 본 논문은 열차자율주행제어시스템을 위한 간격제어와 차상중심 분산형 연동 알고리즘을 제안한다. 열차자율주행제어시스템은 차상에서 간격제어와 함께 분기제어를 수행하므로 선로와 분기기는 공유자원인 동시에 세마포어 요소이다. 제안된 열차자율주행기반 간격제어는 지상 제어시스템의 제어명령에 의존하지 않고 열차와 열차 또는 선로변 설비와의 직접적인 무선통신을 통해 열차 간격제어를 수행한다. 제안된 연동 알고리즘은 공유자원인 선로전환기가 동시에 두 대 이상의 열차가 점유하지 못하도록 선로전환기 고유 key를 이용한 세마포어 기법을 새롭게 정의한다. 시뮬레이션을 통해 제안된 열차자율주행제어시스템의 향상된 간격제어 성능을 확인하며, 차상중심 분산형 연동알고리즘과 기존의 연동장치에서 수행하던 여러 연동논리를 비교함으로써 단순화된 연동알고리즘으로 안전한 열차제어가 가능함을 확인한다.

MAP-MMS 프로토콜의 구현에 관한 연구 (A study on implementation of MAP-MMS protocol)

  • 고우곤;강문식;박민용;이상배
    • 제어로봇시스템학회:학술대회논문집
    • /
    • 제어로봇시스템학회 1989년도 한국자동제어학술회의논문집; Seoul, Korea; 27-28 Oct. 1989
    • /
    • pp.520-523
    • /
    • 1989
  • MAP(Manufacturing Automation Protocol), Network Protocol for FA has 7 Layer Structure of OSI. Being an Application Layer Protocol for Communication Interfaced with the Actual Programmable Devices, MMS(Manufacturing Message Specification) Consists of Three Factors of Services, Interfaces, and Protocol. For Details, It Classifies with the Followings ; Connection/Context Management, Remote Variable Access, Semaphore Management, File transfer and Management, Program UP/DOWN Load, Remote Program Fxecution. In this Paper Designing MAP Network Station of Programmable Device, we Analyze the Protocol of MMS, and Realize the State Diagram of each Services and Propose the Model of MMS Function Call Instructions.

  • PDF

우선순위 역전을 해결하기 위한 세마포어의 구현 (Implementation of Semaphores to Prevent Priority Inversion)

  • 양희권;윤기현;성영락;이철훈
    • 한국정보과학회:학술대회논문집
    • /
    • 한국정보과학회 2003년도 봄 학술발표논문집 Vol.30 No.1 (A)
    • /
    • pp.199-201
    • /
    • 2003
  • 실시간 운영체제(Real-Time OS)는 우선순위 기반의 선점형 스케줄링을 제공하는 운영체제로서 시간 결정성 (Determinism)을 보장하는 특징이 있다. 그러나, 우선순위가 높은 태스크가 우선순위가 낮은 태스크에 의해 CPU를 점유 당하는 우선순위 역전(Priority Inversion)이 발생하여 시간 결정성이 보장되지 못하면 시스템의 심각한 결함을 야기할 수 있다. 본 논문에서는 우선순위 역전을 해결하기 위하여 Priority Inheritance Protocol 을 적용한 세마포 (Semaphore)의 구현에 대해 기술한다.

  • PDF

실시간 임베디드 리눅스에서 다양한 주기적 타스크의 실시간 메커니즘 성능 분석 (On Benchmarking of Real-time Mechanisms in Various Periodic Tasks for Real-time Embedded Linux)

  • 고재환;최병욱
    • 로봇학회논문지
    • /
    • 제7권4호
    • /
    • pp.292-298
    • /
    • 2012
  • It is a real-time system that the system correctness depends not only on the correctness of the logical result of the computation but also on the result delivery time. Real-time Operating System (RTOS) is a software that manages the time of a microprocessor to ensure that the most important code runs first so that it is a good building block to design the real-time system. The real-time performance is achieved by using real-time mechanisms through data communication and synchronization of inter-task communication (ITC) between tasks. Therefore, test on the response time of real-time mechanisms is a good measure to predict the performance of real-time systems. This paper aims to analysis the response characteristics of real-time mechanisms in kernel space for real-time embedded Linux: RTAI and Xenomai. The performance evaluations of real-time mechanism depending on the changes of task periods are conducted. Test metrics are jitter of periodic tasks and response time of real-time mechanisms including semaphore, real-time FIFO, Mailbox and Message queue. The periodicity of tasks is relatively consistent for Xenomai but RTAI reveals smaller jitter as an average result. As for real-time mechanisms, semaphore and message transfer mechanism of Xenomai has a superior response to estimate deterministic real-time task execution. But real-time FIFO in RTAI shows faster response. The results are promising to estimate deterministic real-time task execution in implementing real-time systems using real-time embedded Linux.