Advertisement
Marko35S

Untitled

Jun 15th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. /*
  2. * RKT.cpp
  3. *
  4. * Created on: Jun 13, 2018
  5. * Author: OS1
  6. */
  7. #include "RKT.h"
  8. #include "Def.h"
  9. #include "Timer.h"
  10. #include "SysData.h"
  11. #include "PCBList.h"
  12. #include "PCB.h"
  13. RunningKernelThread* RunningKernelThread::runningKernelThread = NULL;
  14.  
  15. void RunningKernelThread::run() {
  16.  
  17. switch ((SysCallData::sysCallData->name)) {
  18. case THREADCONSTR:
  19. //implement thread constructor
  20. break;
  21. case SLEEP:
  22. //implement sleep
  23. break;
  24. case START: {
  25. PCBList::pcbList->getByID(SysCallData::sysCallData->threadID)->start();
  26. SysCallData::requested=0;
  27. asm int 64h;
  28. break;
  29. }
  30. case WAIT:
  31. break;
  32. case DISPATCH: {
  33. break;
  34. }
  35. case SEMWAIT:
  36. break;
  37. case SEMSIGNAL:
  38. break;
  39. case SEMCONSTR:
  40.  
  41. break;
  42. default:
  43. break;
  44. };
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement