remote_compiler
所属分类:硬件设计
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2018-07-02 03:58:42
上 传 者:
sh-1993
说明: 远程编译器的教育项目,用于测试编程技术,如线程并发、分叉进程控制、信号...、...,
(Educational project of a remote compiler to test programation techniques as concurrency with threads, process control with fork, signals mangment, shared memory, socket comunication and process sincrhonization with semaphores with C programming language)
文件列表:
code_style.md (4073, 2018-07-01)
helloworld.c (126, 2018-07-01)
include/ (0, 2018-07-01)
include/header.h (1379, 2018-07-01)
src/ (0, 2018-07-01)
src/client.c (5395, 2018-07-01)
src/compiler.c (4685, 2018-07-01)
src/functions.c (3001, 2018-07-01)
src/helloworld.c (126, 2018-07-01)
src/main.c (4959, 2018-07-01)
src/makefile (3762, 2018-07-01)
src/server.c (10961, 2018-07-01)
src/test.c (794, 2018-07-01)
# Concurrent remote compiler with C programming language
Features
This project compile c programs remotly
Structure called "program" to save program information as:
Filename
Source path
Path
Response
Status
Structure called "requests" to save request information as:
User id
Request Order
The structure is shared by shared memory technique with the follow process:
Main
Server
Compiler
The main process forks 2 times, and your childs are:
Server
Compiler
The compiler child process has 2 threads:
Compiler thread
Runner thread
The compiler thread takes care of compile remote programs and saves the state in the structure "program"
The runner thread takes care of execute remote programs and saves the state in the structure "program"
The server accepts connections with sockets techniques in concurrent way with threads
The write process in the structure is sinchronized by semaphores techniques
All programs that are sent remotly are saves in local disk, compiled and executed locally
The client sent commands to the server to do the actions
The client can sent program source files to compile remotly
Bulding
- cd src
- make
Running
- cd src
- ./run
- ./client
Testing
- cd src
- ./test
- killall -s SIGALRM client
近期下载者:
相关文件:
收藏者: