Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
1
1801_OS_assignment4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
이경민
1801_OS_assignment4
Commits
51c2bfa3
Commit
51c2bfa3
authored
7 years ago
by
HyukSang Kwon
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
633d238c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+73
-0
73 additions, 0 deletions
README.md
with
73 additions
and
0 deletions
README.md
+
73
−
0
View file @
51c2bfa3
Operating system Assignment 4
===================
TA Info & Assignment URL
---
-
TA Mail: ckai22@ajou.ac.kr
-
TA gitlab: http://git.ajou.ac.kr/ckai22
File Info
---
-
**main.c**
: Implements input and output
-
**alloc.h**
: Implements meta structure
-
**alloc.c**
: Implements malloc, free, and realloc
-
**Makefile**
: compiles the project
-
**input**
directory: saves the input file
TEST
---
##### Test proceeds as follows.
- - -
1.
Input File name to the main function parameter.
2.
Read File (File IO)
3.
Interpret commands in File
4.
Output to stdout
##### **Command structure in File**
- - -
> "Number of command lines" "Fit"
"Command" "Contents"
"Command" "Contents"
...
##### **Fit type (case sensitive)**
- - -
>F: first fit
B: Best fit
W: worst fit
##### **Command type**
- - -
>**s** String: String The command to put the value into
**f**
n: nth allocation area free
**r**
n m: reallocation with m bytes in the nth allocation area
**e**
n: Allocate space without contents to n bytes
##### **Output**
- - -
> “Free" "size" "content (if command is m only)"
"Free" "size" "content (if command is m only)"
...
##### **Example**
- - -
>E1)
**Input**
3 F
m Think like a man of action and act like man of thought.
m Courage is very important. Like a muscle, it is strengthened by use.
m Life is the art of drawing sufficient conclusions from insufficient premises.
**Output**
0 56 Think like a man of action and act like man of thought.
0 72 Courage is very important. Like a muscle, it is strengthened by use.
0 80 Life is the art of drawing sufficient conclusions from insufficient premises.
>E2)
**Input**
2 F
m Think like a man of action and act like man of thought.
f 0
**Output**
1 56
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment