User Tools

Site Tools


cdc:nos2.source:nam5871:oschapp

OSCHAPP

Table Of Contents

  • [00006] PROC OSCHAPP(ACBAD)
  • [00052] PROC OSWAPIN
  • [00053] PROC XTRACE

Source Code

OSCHAPP.txt
  1. *DECK OSCHAPP
  2. USETEXT NIPDEF
  3. USETEXT ACB
  4. USETEXT AT
  5. USETEXT SYSTIME
  6. PROC OSCHAPP(ACBAD); # SCHEDULE AN APPLICATION #
  7.  
  8. STARTIMS;
  9. #
  10. *1DC OSCHAPP
  11. *
  12. * 1. PROC NAME AUTHOR DATE
  13. * OSCHAPP P.C.TAM 80/02/06
  14. *
  15. * 2. FUNCTIONAL DESCRIPTION.
  16. * THIS ROUTINE EXAMINES THE STATE OF APPLICATIONS. AN IMMEDIATE
  17. * RETURN IS MADE FOR THOSE BEING SWAPPED IN OR THOSE EXECUTING
  18. * NORMALLY. A *SWAP-IN* IS ISSUED FOR THOSE IN -WAIT-STATE-.
  19. *
  20. * 3. METHOD USED.
  21. * IF THE APPLICATION IS IN A FORCED NETWAIT,RETURN
  22. * CHECK SWAPIN/SWAPOUT FLAGS IN APPLICATION TABLE
  23. * SWAPIN IF APPLICATION IS IN SWAPOUT STATUS
  24. * UPDATE WAIT TIME IF NON-FORCED NETWAIT
  25. *
  26. * 4. ENTRY PARAMETERS.
  27. * ACBAD APP CONTROL BLOCK ADDRESS
  28. *
  29. * 5. EXIT PARAMETERS. NONE
  30. *
  31. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  32. * ACB APPLICATION CONTROL BLOCK TEMPLATE
  33. * AT APPLICATION TABLE
  34. * NIPDEF CONSTANT DEFINITIONS
  35. * SYSTIME SYSTEM TIME TABLE
  36. *
  37. * 7. ROUTINES CALLED.
  38. * OSWAPIN ISSUE -SWAP IN- REQUEST
  39. * XTRACE TRACES CALLS
  40. *
  41. * 8. DAYFILE MESSAGES. NONE
  42. *
  43.  #
  44. STOPIMS;
  45. # ENTRY PARAMETERS. #
  46. ITEM ACBAD U; # FWA OF APPLICATION-S ACB #
  47. # EXIT PARAMETERS. NONE #
  48. #
  49.   EXTERNAL VARIABLES
  50. #
  51. XREF BEGIN
  52. PROC OSWAPIN; # ISSUE SWAP-IN REQUEST #
  53. PROC XTRACE; # TRACE CALL #
  54. END
  55. #
  56.   INTERNAL VARIABLES
  57. #
  58.  
  59. ITEM I; # TEMPORARY VARIABLE #
  60.  
  61. BASED ARRAY SCPPARAMS; # SCP WORD OF ACB #
  62. ITEM SCPDUM U(0,0,60);
  63.  
  64. #**********************************************************************#
  65.  
  66. BEGIN # BEGIN EXECUTION #
  67.  
  68. CONTROL IFEQ DEBUG,1 ;
  69. XTRACE("OSCHA") ;
  70. CONTROL FI;
  71.  
  72. P<ACB> = ACBAD; # APP CONTROL BLOCK ADDRESS #
  73. I = ACBAN[0]; # APP NUMBER #
  74. P<SCPPARAMS> = LOC(ACBSWAPWR[0]);
  75.  
  76. IF NOT ATASBF[I] # APP DID NOT ISSUE FORCED NETWAIT #
  77. THEN
  78. BEGIN
  79. IF ACBFNTADR[0] NQ 0 AND # APP NOT NETTED ON #
  80. NOT ATASBI[I] AND # SWAPIN NOT ISSUED #
  81. (ATASBSO[I] OR # APPLICATION IN SWAPPED OUT STATE #
  82. ATU[I]) # APP SWAPPED OUT WHEN UPD DATA AVAL #
  83. THEN
  84. BEGIN
  85. ACBID[0] = NONMOVEABLE; # MAKE ACB NON-MOVABLE #
  86. ACBSWAPWR[0] = 0;
  87. OSWAPIN(SCPPARAMS); # ISSUE SWAP-IN REQUEST #
  88. ATASBI[I] = TRUE;
  89. END
  90. IF ATASBW[I] # NETWAIT BUT NOT ROLLED OUT #
  91. THEN # UPDATE WAIT TIME TO RELEASE APP #
  92. BEGIN
  93. ACBNTL[0] = RTSECS[0];
  94. END
  95. END
  96. END
  97. TERM
cdc/nos2.source/nam5871/oschapp.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator