Ghost Kernel

Threaded system calls & kernel-privilege thread support added 2019/03/04, 16:38:10

The redux branch has now support for kernel-level threads and threaded system calls. The previous implementation only supported userspace-threads which had some advantages but also made specific call implementations more complicated. This approach will improve efficiency and allows a better scheduling implementation in the long run.

There were some interesting problems to solve; due to the fact that a kernel thread might get interrupt while holding a kernel lock, the g_mutex implementation must now keep track of the number of locks held per processor. As long as a task holds kernel locks, no other task will be scheduled until the task is finished with its work.

System calls can now be registered as threaded or direct calls. When a threaded call is executed, the respective handler is called within a kernel-level thread. These processing tasks are reused for successive system calls by the same task. This allows preemption during call processing and avoids blocking the scheduler for long-running requests.

Comments

Write a comment...
  • Serzxni 2022/01/26, 11:45:59

    coin

  • susanay3 2022/01/26, 01:15:28

    Hardcore Galleries with hot Hardcore photos

    http://youngblondpornknierim.energysexy.com/?jazmyn

    liea porn freckled face porn blowjob granny wife porn streaming ameture porn tubes new scooby doo porn

  • Veronaudw 2022/01/25, 09:55:35

    urenrjrjkvnm

  • tommierp2 2022/01/23, 02:00:53

    Big Ass Photos - Free Huge Butt Porn, Big Booty Pics

    http://designtshirts.bloglag.com/?estefani

    forced lesbian bdsm porn scottish bathgate teen porn teen porn picks savanna gold porn naughty america porn review

  • magdalenaua16 2022/01/22, 01:48:11

    Free Porn Galleries - Hot Sex Pictures

    http://bazaars.pornnorthhornell.gigixo.com/?raquel

    masturbution teachers porn tube kitty lang porn free porn vids in mebane nc couples in love porn young and 18 porn

  • kristiru16 2022/01/21, 21:53:36

    Browse over 500 000 of the best porn galleries, daily updated collections

    http://tattootribal.hotblognetwork.com/?tayler

    porn site video fungi adultswim porn porn sexual goddess worship videos german porn website free porn milf

  • Eldarnws 2022/01/21, 10:33:31

    coin

  • mariontk2 2022/01/20, 18:27:16

    Free Porn Galleries - Hot Sex Pictures

    http://porn.hub.hotblognetwork.com/?jimena

    porn video nasty mess porn on utube busty strip amatuer pink worlds porn menstruation porn dvds eva delage porn vids

  • gracefu69 2022/01/20, 13:42:21

    Teen Girls Pussy Pics. Hot galleries

    http://bancroft.mature.porn.topanasex.com/?diane

    full length porn videos downloads wwe lita porn videos free funny porn tube elbow fist ass porn plumper porn dump free

  • Svetlanamnh 2022/01/20, 12:25:17

    urenrjrjkvnm

  • Svetlkms 2022/01/19, 22:54:56

    Novyny

  • violayo16 2022/01/18, 08:17:06

    Daily updated super sexy photo galleries

    http://suzieporn.cotopaxi.kanakox.com/?sydni

    porn videos naked girls schreech porn video interraical mature porn free fur coat porn pictures classiv porn

  • Sergkhg 2022/01/17, 11:53:48

    Novost

  • Svetlksn 2022/01/17, 09:30:09

    Novyny

  • willardgk1 2022/01/17, 06:39:16

    Hot photo galleries blogs and pictures

    http://freesexgilf.allproblog.com/?katelynn

    the red club porn adult website the porn art tube freaks of nature porn porn muffia extreme young porn tube org

  • bessieir11 2022/01/15, 12:21:30

    Hot photo galleries blogs and pictures

    http://ashemale.alexysexy.com/?jordyn

    xtube porn sites lanny barby free porn free cumshot porn for ipod ameture pregnant porn clips free itouch porn sites

  • lynettewx1 2022/01/15, 06:42:04

    Hot galleries, daily updated collections

    http://brightipadpornposts.adablog69.com/?ellie

    machine porn clips and thumbs alt porn big natural porn eldery couples unerase porn belgium porn

  • dorthygg2 2022/01/14, 12:26:32

    College Girls Porn Pics

    http://pornkaribyronwyomissing.sexjanet.com/?kelsey

    free cuckolding porn giant butts porn shower girl porn mature gay porn galleries homemade free porn viedos

  • Sergzjy 2022/01/14, 10:38:07

    Novost

  • elisabethlc16 2022/01/13, 17:31:12

    Young Heaven - Naked Teens & Young Porn Pictures

    http://mysticbridepornvids.moesexy.com/?bianca

    free porn thumbnail galleries first times forced sex porn bondage 11 old porn jesse star porn free amateur porn dump

  • viperscura 2022/01/13, 11:44:50

    [CODE]

    http://ms-32.ru/2021-pizda-4/selena-gomes-porno-2021-12-25-3746.html http://freestand.ru/2021-minet-2/gugl-porno-tv-2021-10-17-1333.php http://meendosex.ru/2021-muzh-i-zhena-3/golaya-suka-porno-2021-10-07-1955.php http://sharpeisearch.ru/2021-veb-kamera-3/sayt-houm-porno-2021-09-12-381.php http://starpix.ru/2021-bdsm-6/porno-na-rok-festivalyah-2021-09-25-8210.php http://travers-vlg.ru/2021-orgiya-8/porno-chati-pari-2021-11-27-748.html http://2oe-vnimanie.ru/2021-lesbiyanki-7/porno-v-kupalnike-2021-12-15-1413.html http://ariadnamedia.ru/2021-v-tualete-7/russkae-porno-video-onlayn-2021-09-08-519.php http://kanzlertorg.ru/2021-unizhenie-8/seks-hohlushki-2021-12-11-10590.html http://oleums.ru/2021-bukkake-4/russkoe-porno-izmena-2021-11-20-354.html http://lasvegas.su/2021-veb-kamera-2/ishu-rabotu-v-argayashskom-rayone-2021-10-16-336.php http://xxx-sverdlovsk.ru/2021-maloletki-6/smotret-porno-kachestvennoe-2021-12-29-2182.html http://starpix.ru/2021-privat-1/vaktsina-astrazeneka-posledstviya-2021-08-20-4611.php http://starpix.ru/2021-gruppovuha-7/yaponka-lizhet-yaytsa-2021-07-23-1719.php http://dreamtube.ru/2021-intsest-10/porno-spyashey-2021-12-10-4997.html

    [/CODE]

    http://onxx.ru/

    Да, вы верно сказали

  • karlte2 2022/01/13, 02:52:07

    Browse over 500 000 of the best porn galleries, daily updated collections

    http://shirttops.whitesportshirt.instakink.com/?izabella

    gotn porn thumbs doctor porn free full seduction porn movies visual porn youngest looking teens ever in porn

  • alexandriauy16 2022/01/11, 07:24:26

    New hot project galleries, daily updates

    http://lesbian.forced.instakink.com/?jaelyn

    knee trembler porn free porn fuck suck 69 movies free view porn movies fee eten porn movies images teen sex porn

  • helenpm18 2022/01/07, 08:37:43

    Hot new pictures each day

    http://tinyboobsporn.arkoma.danexxx.com/?daisy

    father and daughters boyfriend porn porn videos on youtube parent safe porn french model porn kirk cummings porn

  • barbrabc11 2022/01/06, 05:19:59

    Daily updated super sexy photo galleries

    http://freepornitaly.gigixo.com/?naomi

    free naked girl celebrity porn pictures brandy rock of love porn free orgy bi porn gay porn shane erickson galleries erotic porn stars

  • sharixx69 2022/01/05, 16:38:05

    Hardcore Galleries with hot Hardcore photos

    http://adamsville.freepornvidstu.miyuhot.com/?marisa

    best free online porn game topeka porn you porn amateur ukrainian girl free am wf porn clips sienna west lesbo porn

  • karennr11 2022/01/05, 14:19:12

    Hardcore Galleries with hot Hardcore photos

    http://gaymachineporn.alypics.com/?baby

    free asian porn hd video top 10 porn dvd 2007 my prize porn black ass porn free xxx youtube tiny angels photo gallery porn

  • chrystalgt11 2022/01/04, 23:05:09

    Hot galleries, daily updated collections

    http://shemalevideow.lexixxx.com/?crystal

    futurama jurrasic bark porn porn shop in springfield ma ten best porn sites sick porn tp direct download celeb porn

  • latashayi2 2022/01/04, 07:55:52

    New project started to be available today, check it out

    http://kitgayoqueisso.homosexul.fetlifeblog.com/?jaclyn

    post op trannie porn ipod touch fingering porn chubby amatures free porn internet porn data base porn leather jackets

  • viperscura 2022/01/03, 19:51:07

    <QUOTE>

    Соломон , http://starpix.ru/2021-privat-1/porno-vuayerist-novoe-2021-11-04-12425.php http://hardosvidos.com/2021-dvoynoe-proniknovenie-8/porno-drug-sina-2021-11-20-8090.php http://2oe-vnimanie.ru/2021-massazh-2/porno-foto-molodih-2021-12-26-1999.html http://mirolympiad.ru/2021-veb-kamera-3/novoe-porno-hhh-2021-11-22-667.html http://pornocase.ru/2021-russkoe-porno-10/gey-foto-forum-zhiteley-2021-09-27-916.php http://ok-land.ru/2021-orgiya-7/porno-pe-2021-10-06-1513.php http://molodyesex.ru/2021-porno-volosatie/seks-so-spermoy-2021-12-25.php http://kanzlertorg.ru/2021-prostitutki-1/seks-hitoi-2021-12-12-11961.html Вас посетила отличная идея

    <b>порно с горничными </b> Короче смотрите не пожелеете! качество какашка, но смотреть можно!

    http://turkredit.ru/2021-unizhenie/porno-gey-podrostki-v-posteli-2022-03-19.php http://teen-area.ru/2021-fisting/doska-gey-sayti-pitera-2022-01-16.php http://pricepath.ru/2021-fetish/seks-gey-porno-atest-trahayut-sin-2021-12-19.php

    <a href=https://forum.adblockplus.org/viewtopic.php?f=1&t=89132>Близняшки уединились во дворе с дума красавчиками, где с ними затеяли оргию. Смотреть онлайн.</a> <a href=https://www.supersupporter.net/topic/13884-28-%D1%8F%D0%BD%D0%B2-2018-%D0%B3-%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%B5%D0%B5-%D0%BF%D0%BE%D1%80%D0%BD%D0%BE-%D0%B8%D0%B7-%D0%B8%D1%82%D0%B0%D0%BB%D0%B8%D0%B8-%D1%81-%D1%81%D1%8E%D0%B6%D0%B5%D1%82%D0%BE%D0%BC-%D0%B8-%D1%86%D0%B5%D0%BB%D0%BE%D0%B9-%D0%BA%D1%83%D1%87%D0%B5%D0%B9-%D0%BF%D0%BE%D1%80%D0%BD%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D1%85-%D1%81%D1%86%D0%B5%D0%BD-%D1%8D%D1%82%D0%BE%D1%82-%D1%88%D0%B8%D0%BA%D0%B0%D1%80%D0%BD%D1%8B%D0%B9-%D0%B8%D1%82%D0%B0%D0%BB%D1%8C%D1%8F%D0%BD%D1%81%D0%BA%D0%B8%D0%B9-%D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9-%D0%BF%D0%BE%D1%80%D0%BD%D0%BE-%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-%D0%BF%D1%80%D0%BE-%D0%B2%D0%BE%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5/>28 янв. 2018 г. Хорошее порно из Италии, с сюжетом и целой кучей порнографических сцен. Этот шикарный итальянский, классический порно фильм про военные.</a> <a href=https://forum.adblockplus.org/viewtopic.php?f=1&t=89124>Смотрите онлайн и скачайте бесплатно порно ролики со скрытой камеры на. Подборка подсматриваний за еблей русской молодежи в туалетах ночных клубах.</a> 686_003

    </QUOTE>

    Кондрат , http://masterobot.ru/2021-strapon-9/porno-pyat-devushek-i-odin-paren-2021-09-22-598.php http://sissymake.ru/2021-mezhrassovoe-porno-4/sissy-bimbo-hypno-2021-09-09-189.php Беспроигрышный вариант

    Класс! Афтару респект!

    <b>epoltio ,</b> Согласен, полезная мысль

  • lorriekg3 2022/01/01, 15:20:43

    Sexy pictures each day

    http://helix.pornjenkins.gigixo.com/?yasmine

    real submitted porn free porn videos fifteen hd tv free porn free sexslave porn vids sleazy porn cries black

  • karynzj3 2021/12/31, 09:36:09

    Hot new pictures each day

    http://3dgayporncomic.alypics.com/?aliyah

    cindy sex porn drawn sex porn galleries free young gilrl porn free teri hatcher porn hentai porn 2010 jelsoft enterprises ltd

  • rosalindaam4 2021/12/30, 13:26:41

    Sexy photo galleries, daily updated collections

    http://adultpornfinder.bestsexyblog.com/?akira

    gye teen porn dirty clothes porn small tits skinny porn 89 black porn free porn mom mature

  • aishalz60 2021/12/30, 03:03:17

    Dirty Porn Photos, daily updated galleries

    http://pornkateezena.gigixo.com/?amelia

    young teen porn daddy daughter lesbian anime porn trailers dr phil porn addiction serial killer amy poehler porn fakes gay teen porn small penis

  • Vikiexz 2021/12/28, 11:45:30

    urenrjrjkvnm

  • Vikicqe 2021/12/28, 00:45:15

    urenrjrjkvnm

  • ceceliaug18 2021/12/27, 21:04:39

    Hardcore Galleries with hot Hardcore photos

    http://redheadscope.bloglag.com/?dania

    free lesbian school girls porn videos sex free porn dump squirt free soccer girl porn teen sock porn porn pictures of toastie

  • Vikieqn 2021/12/27, 13:53:12

    urenrjrjkvnm

  • augustajm60 2021/12/26, 01:33:10

    Hot sexy porn projects, daily updates

    http://denmark.granny.porn.hotnatalia.com/?erin

    supergirl justice league porn vintage porn the farmers daughters free teen sex stories porn lady dragonfly porn horse to girl porn

  • Veronadsd 2021/12/24, 21:28:46

    Life

  • Leonmpk 2021/12/24, 16:02:23

    urenrjrjkvnm

  • elviame60 2021/12/24, 10:52:34

    Enjoy our scandal amateur galleries that looks incredibly dirty

    http://tightpornhotnavyyardcity.sexjanet.com/?regina

    porn free young video underground megan and shaun clark porn 1990 s gay porn dogs eating girls out porn porn dvd mail order discount cheap

  • Veronagfl 2021/12/24, 09:12:30

    Life

  • ettaio60 2021/12/23, 06:46:13

    Dirty Porn Photos, daily updated galleries

    http://ratnastyporn.xblognetwork.com/?abbie

    sexy fre videos porn cock pussy maitresse madeline free porn tube cartoon porn of family guy porn pron mature plumper porn pics

  • florann3 2021/12/22, 15:17:54

    Free Porn Galleries - Hot Sex Pictures

    http://pornbad.allproblog.com/?emily

    redtube home porn videos forced porn virgins interracial bi black porn holyoke porn shop free voyeur porn

  • Igorsrd 2021/12/22, 09:01:55

    Ukraine

  • Levfum 2021/12/21, 03:39:15

    urenrjrjkvnm

  • Levirq 2021/12/20, 15:31:37

    urenrjrjkvnm

  • lidiaku16 2021/12/20, 06:15:45

    Sexy teen photo galleries

    http://monsterporn.colfax.alexysexy.com/?valentina

    free latinaa teens porn videos hundreds of mobile teen porn pictures mature amutre stolen videos porn harcore skinny petite porn girls skinny porn longer

  • elisexe69 2021/12/19, 20:02:00

    Hot new pictures each day

    http://porngirlingirl.xblognetwork.com/?jillian

    maryse ouellet fake porn pics biggest gay porn actors musican porn cum eater porn tube large ladies porn tube

  • Evaqwh 2021/12/19, 19:48:32

    Med

  • Veronawfq 2021/12/19, 19:02:57

    urenrjrjkvnm

  • Eldarorv 2021/12/19, 19:02:57

    coin

  • Serghbp 2021/12/19, 15:29:55

    Novost

  • Julinmq 2021/12/19, 13:42:43

    urenrjrjkvnm

  • trishapt18 2021/12/19, 03:38:17

    Hot galleries, daily updated collections

    http://shemalepune.shemail.bloglag.com/?maegan

    simsons porn xxx panties porn fingering free videos free tweek porn little merimaid porn muscle solo porn video

  • Sergmeh 2021/12/18, 20:27:34

    Novost

  • dionnezp1 2021/12/17, 18:40:51

    Sexy photo galleries, daily updated pics

    http://valleyview.gaycoupleporn.energysexy.com/?darby

    asian and black porn sites porn actress forum taking it off porn movie plus size porn star beautiful free video porn

  • Ivanlgk 2021/12/17, 11:27:16

    news

  • Ivanlvh 2021/12/16, 23:02:06

    news

  • Ivanlsn 2021/12/16, 10:54:13

    news

  • melbazh11 2021/12/15, 09:59:46

    Sexy teen photo galleries

    http://bossbitchesporn.hoterika.com/?brianna

    masture senior couples porn tube free porn keys free online porn sexflash games free best thailand porn pics free desi porn download

  • Davidwge 2021/12/15, 09:13:33

    coin

  • Svetlzhy 2021/12/14, 19:54:26

    Novyny

  • adeleii16 2021/12/14, 18:58:31

    Sexy pictures each day

    http://free.girl.porn.instakink.com/?karly

    free extended porn book porn fee porn shit free porn video hosting the youngest ever porn tube

  • Svetluhi 2021/12/14, 07:54:55

    Novyny

  • Svetlnkv 2021/12/13, 20:23:48

    Novyny

  • Svetlrzu 2021/12/13, 04:35:10

    Novyny

  • Sergnid 2021/12/12, 23:37:29

    Novosti

  • crystalsu11 2021/12/10, 14:36:35

    New super hot photo galleries, daily updated collections

    http://ebayo32c.kanakox.com/?tiffany

    fart and shitting porn how to surf porn virus free girlfriend face fuck porn porn stars big tits and asses fake celebrity porn stars

  • ramonij2 2021/12/06, 22:29:21

    Browse over 500 000 of the best porn galleries, daily updated collections

    http://shemale.transexualsites.hotblognetwork.com/?madelynn

    porn mstakes porn matore mom free gay porn haze mom son porn videos phone porn video clips

  • aaronwc18 2021/12/06, 19:30:57

    Sexy teen photo galleries

    http://terry.cfnm.porn.adablog69.com/?daisy

    uk british upload free porn pierced women porn teen spy porn porn forced to remove scandle free naughty babysitter porn videos

  • donaldmr60 2021/12/06, 00:24:24

    Hardcore Galleries with hot Hardcore photos

    http://spyglassespornstonington.hoterika.com/?ashlyn

    s and m male porn free retro interracial porn free spainish porn videos pulp porn mia bang porn downloads

  • timle1 2021/12/04, 10:10:56

    Scandal porn galleries, daily updated lists

    http://otho.roughdrunkporn.topanasex.com/?alison

    free asian midget porn tube free mobile puke porn ugly black girl porn mature porn picts 1940s porn clips

  • janieqo2 2021/12/03, 23:46:34

    Nude Sex Pics, Sexy Naked Women, Hot Girls Porn

    http://vintage69porn.adablog69.com/?devyn

    afterhours porn rape porn mp4 videos hottest porn scene bikini porn free porn videos kayden 420

  • jerrivp16 2021/12/02, 20:21:09

    Hot teen pics

    http://hentailesbian.latinaporn.instakink.com/?tia

    barly teens uk porn free hairy pussy porn online femdom tube porn fat sex moms granny porn tubes homemade porn swingers

  • altheabb16 2021/12/01, 17:08:32

    New sexy website is available on the web

    http://1stypungporn.hotblognetwork.com/?virginia

    top class fake celebrity porn pictures of teen porn incredibles free porn gallery vintage porn pics young biggest porn download

  • terrysh4 2021/11/29, 10:29:24

    Hot teen pics

    http://hentainudesexy.hotblognetwork.com/?alexia

    miget masterbation porn tube solo grls porn inspector mathew rush porn nick east porn extremely old granny porn

  • geraldinems69 2021/11/29, 05:48:32

    Young Heaven - Naked Teens & Young Porn Pictures

    http://threesome.porn.hoterika.com/?alanna

    free porn darl lily dancing porn tube wwe melina in porn sex with old ladies porn phillipean young porn

  • donjl4 2021/11/28, 21:16:07

    Sexy teen photo galleries

    http://granny.porn.instakink.com/?maribel

    how to be a porn producer free teen young porn tubes unknown porn archives dirty older women porn movies buff chic porn

  • reginayt4 2021/11/27, 18:12:11

    Young Heaven - Naked Teens & Young Porn Pictures

    http://wikieupsickpissporn.miyuhot.com/?alondra

    mexico and black man porn hottest new porn stars holiday porn videos exreme anal prolapse porn bush wins porn jpeg

  • pedroop1 2021/11/27, 00:19:43

    Sexy photo galleries, daily updated collections

    http://pratt.gay.porn.porn.hotnatalia.com/?cora

    porn with parents girl solo porn shared porn movies free hentai or anime porn site puke porn moies

  • dennisvr11 2021/11/24, 22:14:01

    Daily updated super sexy photo galleries

    http://anelpornxxxsex.tubespiderporn.gigixo.com/?madyson

    free porn pics secret maliah michel in porn free big tit porn movies japan amateur porn free sites list porn

  • carmelaxo4 2021/11/24, 01:15:53

    New project started to be available today, check it out

    http://new.prague.voyeur.porn.alypics.com/?devyn

    mature women porn video clips oedipus porn tube flexible girls porn bib tits porn milf teen porn galleies

  • Hamidreza 2019/05/30, 17:55:09

    hello friend!

    I'm happy to your coming back.

    Please continue to developing.

    Thanks

  • Martin Vahi 2019/03/07, 20:33:18

    You may want to study the ideas behind the ParaSail programming language, when developing some threading model. One of the peculiarity of the ParaSail programming language is that it is a systems programming language that is meant to be used with safety critical systems, has formal verification tools designed right into the language from the very start and is designed to work with 1000+ core CPUs by using a new threading model that minimizes the threading related burden of software developers. As of the writing of this comment, the newest version is the ParaSail_8.0

    https://groups.google.com/forum/#!topic/parasail-programming-language/tt8MMqtV8k8

    but repackaged older versions can be found from my home page at

    https://technology.softf1.com/software_by_third_parties/ParaSail/

    The older versions might be easier to build, specially the version 6.5, which does not have a fast implementation, but is good enough for studying the ideas behind the ParaSail.

    I am NOT a ParaSail author. The ParaSail is created/invented by the Ada language designer, the Tucker Taft, who designed it as a summary of all of his life long language design knowledge. The purpose was to create a brand new systems programming language that is not just "a better C", but that takes to account the formal verification achievements from the very start, since the design phase of the language and that is designed with perfection in mind, without needing to support any old legacy code. The nice thing about the ParaSail is that it is not yet-another-academic-one-off-project that is dumped the moment grant money runs out or papers get published or thesis gets defended. The ParaSail is actually designed by an industrial developer, the Tucker Taft, and it is meant to be PRACTICAL in industrial scenarios. As of 2019_03 the downside of the ParaSail is the legal uncertainty: it's GPLv3 and the Tucker Taft claims that the stdlib is in public domain and according to his 2019_03 understanding the development of commercial, closed source, software is not limited by the current ParaSail license, but I believe that as there is no clear statement about that in the ParaSail sources, the situation can be interpreted both ways, so from my point of view the ParaSail stdlib is under GPLv3. But it is still a remarkable project for learning, self education.

    Thank You for reading my comment.

  • Guillaume 2019/03/06, 02:57:37

    Hi !

    I have a question about the kernel-level thread created for syscalls : do you mean that this thread, once created, will live until user thread (or user process ?) die ?

    I always thought that having kernel-level threads was necessary to create a kernel, I can see that it's not an obligation but it seems necessary in your case ?

    • Max 2019/03/06, 03:32:09

      Hi Guillaume!

      The kernel-level thread that is created is only scheduled until the syscall is finished; it then gets the state "unused" but the allocated structures (stack etc.) stay alive. Once the user thread finishes, this processing thread is also deleted. I'm thinking about sharing those unused threads between multiple user threads though to improve this more.

      Well, in the existing (master branch) implementation of Ghost, there are only Ring 3 threads, no Ring 0 at all. This had the advantage that faulty code would less frequently kill the entire system. But in this first approach I did, there are also many limitations. System calls could not be interrupted. When you needed some thread to do stuff that would normally require kernel-permissions, there had to be a system call for every bit of work. All of that increased latency a lot.

      Greets

    • Guillaume 2019/03/06, 06:46:51

      Yes I think you could use this same kernel-level thread for all threads of the same process ? (all these threads sharing the same virtual memory space...).

      I don't understand why your System calls couldn't be interrupted ? If an interrupt occurred, the kernel just has to switch to a new kernel stack (associated to the user thread) for this interrupt. In this way, the kernel stack used for the syscall is not corrupted by the interrupt. But maybe I didn't understand the problem your are talking about...

      Anyway thank you for your answer !

    • Max 2019/03/06, 06:52:51

      What I mean with that is, it is pretty hard to properly make the interrupt handlers preemptible. During interrupt handling, another interrupt could be fired, which would push again onto the current kernel stack. Using kernel level threads for the syscall handling I can avoid interrupting the system call handler.

    • Guillaume 2019/03/06, 06:59:41

      Ok I understand, I didn't come far enough in my project to have this problem I guess...

      Thank you for your answers and have a nice day ;)

    • Max 2019/03/06, 09:24:10

      Sure! Good luck with your project :-)

Cancel