国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

COMP2211 代做、代寫shell interface程序設(shè)計
COMP2211 代做、代寫shell interface程序設(shè)計

時間:2024-11-09  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯



Chapter 5
Week 4: Creating a small shell interface
You must submit your work to the appropriate submission point in Gradescope, which will
be automatically marked. You should submit a single file called my_shell.c. Any other
files you submit will not be marked. Although you do not need to include any additional
supporting documentation or report, we do expect that your code is well written, tested and
commented.
Deadline: Week 6 of teaching. Thursday. 7th of Novem ber, 2024. 14:00. Extensions of up to 7 days are available.
Weighting: 40% of the final module mark.
In this coursework you will demonstrate:
• An understanding of how processes are created by the operating system.
• An understanding of file descriptors and their relationship to pipes and redirection.
• The ability to program components of an operating system.
Exercise
In this coursework you will implement a simple shell for the xv6 operating system. This
new shell will be implemented as a user space program. Before you attempt this coursework,
make sure you have gone through most of the formative assessment exercises in the preceding
weeks and convinced yourself that you know how various parts work. Where you have doubts,
read relevant parts again and redo the coursework, which will make you spot new things and
gain a deeper understanding of the material. You should provide your implementation in a
new file called my_shell.c. You may use any helper functions provided by the xv6 kernel or
user libraries. For each of the following items implement the feature into your shell, as you
progress the features to implement become harder. This exercise should not require you to
modify any file other than my_shell.c and the Makefile.
To start with clone the repository containing the starting code and copy my_shell.c
from it into your xv6 user/ directory:
29
$ git clone https://github.com/mmikaitis/COMP221**shell-template.git
Modify the Makefile accordingly and rebuild xv6. It will not compile because my_shell.c is
not finalised yet. However, it also contains some comments that should help in finishing the
intended structure. Your task is to finish writing methods getcmd, run_command, and main,
by inserting code in the indicated locations. No other methods should be developed.
You are allowed to look at a default xv6 shell source code as well as
learn about implementing shells using external resources. However,
you are required to follow the unique structure outlined in the tem plate and are not allowed to supply any code which was not developed
solely by yourself, starting from design stage. If you depend highly
on some online tutorials then you need to declare the sources in the
comments, which includes large language models. If you discuss early
ideas with someone in the lab you should make sure that you don’t
end up with similar code structure; you should not code together.
Gradescope will run a similarity check of your submission and if the
logic of the new code is reported to be similar to someone else’s,
the submission will be carefully checked manually and reported as
academic integrity violation if required. See this website for some
detail. The similarity check is resilient to changing variables names
or adding comments and new lines.
Going through academic integrity interviews is a daunting process and
may result in severe delays to your degree progression. It is better
to submit nothing than submit the code that was partially developed
by others. If you are behind, speak to the lab demonstrators and the
module lead for guidance on best ways forward.
Part 1: Execute simple commands (5 Marks)
Implement the execution of simple commands. Your shell should be able to:
• Prompt the user for a command by printing “>>>” as a command prompt.
• Execute a command inputted to the command prompt.
• Loop indefinitely until the shell is exited.
• Handle the “cd” command—you will notice that this command will need to be treated
as a special case.
Do not forget to stress-test your simple shell before moving on to advanced features. The
automatic marking will be testing it on various cases and marks will be deducted if it does
not work when the same command is provided in a different format, such as with extra
30
spacing. For example, consider (note the amount and location of space characters which
may impact the shell if they are not detected):
$ echo hello world
$ echo hello world
Once you are comfortable that you have tested your shell with any possible command that
could reveal bugs, move on to implement the following advanced features.
Part 2: Input/Output redirection (6 Marks)
Implement Input/Output redirection. Your shell should be able to handle two element
redirections. For example,
$ echo "Hello world" > temp
$ cat < temp
Part 3: Pipes (6 Marks)
Implement pipes. Your shell should be able to handle two element pipelines. For example,
$ cat README | grep github
Part 4: Additional features (8 Marks)
Implement the following advanced features:
1. Implement multi-element pipelines. For example,
$ ls | grep test | cat
2. Implement non-trivial combinations of pipes and redirection. For example,
$ ls | grep test | cat > myoutput
3. Implement the “;” operator that allows a list of shell commands to be given and
executed sequentially.
$ ls | grep test | cat > myoutput; cat myoutput
Marking
Gradescope will run 26 test commands and award a mark out of 25. The commands that will
be run are not disclosed and you are required to use creativity to think of various scenarios
which may break your shell and test it thoroughly before submitting. 3 out of 25 marks
31
will be awarded to those who spot three especially tricky cases of specifying commands and
implement their shells to get around them.
There are many ways to type commands, some straightforward as shown above, and
some not, such as when people type commands without using any spaces or with arbitrary
number of spaces in various places. Your shell should be resilient to this ambiguity in
specifying commands. Those students who spent more time in thinking about various test
cases and check them will get more marks than those who only try a few straightforward
commands listed above.
Here are a few example commands running in the new completed shell to get you started:
xv6 kernel is booting
hart 2 starting
hart 1 starting
init: starting sh
$ my_shell
>>> mkdir tempdir
>>> ls
. 1 1 1024
.. 1 1 1024
README 2 2 2292
cat 2 3 35080
echo 2 4 33960
forktest 2 5 16080
grep 2 6 38512
init 2 **4424
kill 2 8 33888
ln 2 9 33712
ls 2 10 37016
mkdir 2 11 33952
rm 2 12 33936
sh 2 13 56504
stressfs 2 14 34816
usertests 2 15 179160
grind 2 16 49**6
wc 2 1**6024
zombie 2 18 3**88
my_shell 2 19 400**
console 3 20 0
tempdir 1 21 **
>>> cd tempdir
>>> ../ls
. 1 21 **
**
.. 1 1 1024
>>> cd ..
>>> ls
. 1 1 1024
.. 1 1 1024
README 2 2 2292
cat 2 3 35080
echo 2 4 33960
forktest 2 5 16080
grep 2 6 38512
init 2 **4424
kill 2 8 33888
ln 2 9 33712
ls 2 10 37016
mkdir 2 11 33952
rm 2 12 33936
sh 2 13 56504
stressfs 2 14 34816
usertests 2 15 179160
grind 2 16 49**6
wc 2 1**6024
zombie 2 18 3**88
my_shell 2 19 400**
console 3 20 0
tempdir 1 21 **
>>> echo hello
hello
>>> echo hello
hello
>>> cat README | grep xv6
xv6 is a re-implementation of Dennis Ritchie’s and Ken Thompson’s Unix
Version 6 (v6). xv6 loosely follows the structure and style of v6,
xv6 is inspired by John Lions’s Commentary on UNIX 6th Edition (Peer
(kaashoek,rtm@mit.edu). The main purpose of xv6 is as a teaching
>>> cat README| grep xv6
xv6 is a re-implementation of Dennis Ritchie’s and Ken Thompson’s Unix
Version 6 (v6). xv6 loosely follows the structure and style of v6,
xv6 is inspired by John Lions’s Commentary on UNIX 6th Edition (Peer
(kaashoek,rtm@mit.edu). The main purpose of xv6 is as a teaching
>>>
It is worth to note that the default xv6 does not pass all of our expected tests. For
example:
33
xv6 kernel is booting
hart 2 starting
hart 1 starting
init: starting sh
$ cd .
$ cd .
cannot cd .
$ mkdir temp
$ cd temp
$ cd ..
$ cd temp
cannot cd temp
$
Submission
You are required to submit only my_shell.c. See Minerva.


請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp





 

掃一掃在手機打開當(dāng)前頁
  • 上一篇:SCC.369代做、代寫C/C++編程設(shè)計
  • 下一篇:代寫COSC2531、代做Python設(shè)計編程
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲勞振動
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網(wǎng)頁版入口 破天一劍 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品一区二区免费| 久久一区二区精品| www..com日韩| 精品久久久久久综合日本| 日韩精品欧美在线| 国产黄色激情视频| 亚洲a一级视频| 国产日韩综合一区二区性色av| 国产成人无码一二三区视频| 日韩日韩日韩日韩日韩| 久久天天狠狠| 亚洲国产一区二区在线| www.av蜜桃| 亚洲一区二区中文| av一区二区三区免费| 亚洲综合自拍一区| 91久久精品一区二区别| 亚洲一区二三| 91精品久久久久久久久久久久久久 | 国产精品第157页| 加勒比在线一区二区三区观看| 久久精品在线播放| 欧美日韩第二页| 国产精品久久久久久久久男| 国内久久久精品| 国产精品日韩欧美一区二区三区| 欧美国产综合视频| 久久精品国产亚洲一区二区| 精品日产一区2区三区黄免费 | 最新中文字幕久久| 国产精品一区二区三区久久| 一道精品一区二区三区| 91精品久久久久久久久青青| 欧美一区二区三区……| 国产成人成网站在线播放青青| 日韩免费视频在线观看| 久久精品成人一区二区三区| 欧美污视频久久久| 欧美精品在线观看91| 国产精品一区二区av| 亚洲精品电影在线一区| 久久黄色免费看| 欧美 日本 亚洲| 欧美日韩第一视频| 97欧洲一区二区精品免费| 懂色一区二区三区av片| 久久久久久国产免费| 蜜桃麻豆91| 亚洲女人毛片| 日韩中文字幕在线视频| 国产一区二区三区四区五区在线| 亚洲综合日韩中文字幕v在线| 久久国产精品99久久久久久丝袜| 精品www久久久久奶水| 亚洲综合五月天| 日韩在线免费视频| 国产一区二区三区乱码| 亚洲mm色国产网站| 国产精品网站免费| 超碰97网站| 欧美一级大片视频| 中文字幕中文字幕在线中心一区| 久久精精品视频| 国产嫩草一区二区三区在线观看| 日本在线高清视频一区| 另类色图亚洲色图| 久久久视频在线| 国产综合av一区二区三区| 懂色av粉嫩av蜜臀av| 国产精品久久久久7777| 91精品国产91久久久久久最新 | 久久久久久高潮国产精品视| 久久久久福利视频| 国产综合精品一区二区三区| 视频一区亚洲| 久久99精品久久久久久琪琪 | 成人精品水蜜桃| 免费在线观看日韩视频| 婷婷久久伊人| 精品久久久久久综合日本| 久久久久久久久久久久久久一区| 99久热re在线精品996热视频| 欧美激情www| 日本中文字幕亚洲| 欧美激情图片区| 久操网在线观看| 超碰成人在线免费观看| 国内视频一区二区| 热re99久久精品国99热蜜月| 亚洲精品一区二区毛豆| 欧美成人免费va影院高清| 日韩在线视频播放| 91高清视频免费| 国产乱码精品一区二区三区卡| 欧美有码在线视频| 色女人综合av| 亚洲欧美精品| 色综合久久精品亚洲国产| 久久久91精品国产一区不卡| 国产二区视频在线| 99在线视频播放| 国内精品久久久久影院优| 日韩精品电影网站| 日日夜夜精品网站 | 国产中文欧美精品| 欧美成ee人免费视频| 欧美在线不卡区| 日韩欧美第二区在线观看| 性亚洲最疯狂xxxx高清| 亚洲欧美国产精品桃花| 亚洲影院污污.| 一区二区不卡在线观看| 九九久久久久久久久激情| 久久亚洲一区二区三区四区五区高 | 九九视频直播综合网| 久久综合久久八八| 国产精品区一区二区三含羞草 | 91久久精品在线| 97国产精品久久| av动漫在线免费观看| 古典武侠综合av第一页| 超碰成人在线免费观看| 成人福利视频网| 97色伦亚洲国产| 91久久久久久| 久久久一二三四| 国产成人精品视频| 丝袜一区二区三区| 久久久国产精品一区| 国产精品久久久久久久久久久久久 | 精品国产一区二区三区久久久| 久久久久久久久影视| 色妞色视频一区二区三区四区| 日韩中文字幕在线播放| 国产精品青草久久久久福利99| 国产精品成人aaaaa网站| 久热精品视频在线免费观看| 欧美日本亚洲视频| 亚洲在线免费看| 日本黄网站免费| 欧美亚洲国产视频| 国产在线不卡精品| www.com毛片| 久久精品视频16| 久久精品国产精品| 精品国产一区二区三区四区vr| 欧美精品久久久久久久免费观看| 亚洲综合视频一区| 日本精品久久久久影院| 男女午夜激情视频| 国产免费内射又粗又爽密桃视频| av一区二区三区在线观看| 国产高清精品一区二区三区| 久久精品国产91精品亚洲| 精品久久久久久一区| 午夜精品三级视频福利| 欧美怡红院视频一区二区三区| 国产日韩欧美综合精品| 久久综合九色综合网站| 久久精品国产69国产精品亚洲| 九九精品在线播放| 亚洲精品免费在线视频| 欧美欧美一区二区| 成人免费淫片aa视频免费| 久久免费一级片| 韩日欧美一区二区| 91精品国产综合久久香蕉最新版| 视频在线一区二区| 欧美精品久久久久a| 日本www在线播放| 国产主播精品在线| 国产黄色激情视频| 欧美精品免费在线观看| 欧美一级视频在线播放| 黄色一级片网址| 91久久精品在线| 国产精品视频男人的天堂| 中日韩在线视频| 欧美在线视频一二三| 高清一区二区三区视频| 俺去了亚洲欧美日韩| 亚洲人成无码www久久久| 免费一级特黄特色毛片久久看| 国产福利精品视频| 欧美激情在线观看视频| 欧美日韩免费高清| 国产精品99蜜臀久久不卡二区| 久久亚洲国产精品成人av秋霞| 日本精品免费| av在线亚洲男人的天堂| 久久躁日日躁aaaaxxxx| 日本wwww视频| www.欧美黄色| 国产精品成人播放| 欧洲成人免费视频| 久久久免费精品视频| 中文字幕黄色大片| 国产综合色一区二区三区| 久久精品国产精品亚洲| 日本在线观看一区|