소형 내장형 시스템을 위한 단일 스택 멀티 스레드 구현

An Implementation of Single Stack Multi-threading for Small Embedded Systems
  • 김용석

초록

In small embedded systems including IoT devices, memory size is very small and it is important to reduce memory amount for execution of application programs. For multi-threaded applications, stack may consume a large amount of memory because each thread has its own stack of sufficiently large size for worst case. This paper presents an implementation of single stack multi-threading, called SSThread (Single Stack Thread), by sharing a stack for all threads to reduce stack memory size. By using SSThread, multi-threaded applications can be programmed based on normal C language environment and there is no requirement of transporting multi-threading operating systems. It consists of several library functions and various C macro definitions. Even though some functional restrictions in comparison to operating systems supporting complete multi-thread functionalities, it is very useful for small embedded systems with tiny memory size and it is simple to setup programming environment for multi-thread applications.

키워드

Multi-threadingStack sharingC preprocessorIoT
제목
소형 내장형 시스템을 위한 단일 스택 멀티 스레드 구현
제목 (타언어)
An Implementation of Single Stack Multi-threading for Small Embedded Systems
저자
김용석
발행일
2016-04
유형
Y
저널명
한국컴퓨터정보학회논문지
21
4
페이지
1 ~ 8