home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / ada / 2391 < prev    next >
Encoding:
Text File  |  1992-08-20  |  3.7 KB  |  68 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!mawhelan
  3. From: mawhelan@afit.af.mil (Michael A. Whelan)
  4. Subject: Dynamic Task Creation/Control
  5. Message-ID: <1992Aug20.174857.3246@afit.af.mil>
  6. Originator: mawhelan@scgraph
  7. Sender: news@afit.af.mil
  8. Nntp-Posting-Host: scgraph.afit.af.mil
  9. Organization: Air Force Institute of Technology
  10. Date: Thu, 20 Aug 1992 17:48:57 GMT
  11. Lines: 55
  12.  
  13. Wisdom Sought!
  14.  
  15.     I am currently working on my MS here at AFIT.  The title of my thesis
  16. is "A Real-Time Intelligent System Architecture Implemented in Ada".  The
  17. 'direction' of the thesis is to provide a way to implement what are termed
  18. 'Real-Time AI Sytems' in Ada.  Generally, real-time AI systems only 
  19. address the issue of agenda management, and not deadline guarentees.  I 
  20. am trying to add the ability for the 'Intelligent' part to control, the
  21. 'real-time' part.
  22.     Please do not ask for an definition of an 'intelligent' agent, I am not 
  23. attempting to start a philosphical debate.  Also, the 'concept' of a 
  24. real-time intelligent system is not new and I can provide references to 
  25. anyone who asks.
  26.     What I am currently attempting to do is allow for the dynamic creation, 
  27. execution, scheduling, prioritzing, etc. of both periodic and 
  28. non-periodic tasks.  I am assuming (well maybe not assuming but using an 
  29. educated speculation) that most work done in an 'intelligent' system is 
  30. done by 'procedural' processes/tasks.  The goal of the 'intelligent' part 
  31. then is to figure out what 'procedural' part to execute and be able to 
  32. have it done in real-time, meaning guaranteed deadlines.
  33.     Periodic tasks are scheduled using a varity of 'scheduling policies' but
  34. the underlying 'scheduling theory' is rate monotonic.  Because, I am 
  35. assuming that I do not know a-priori what the periodic task set looks like,
  36. (i.e. how many tasks, the periods or each, etc.) and because there is a 
  37. limited number of priorites available, ( Verdix on a Sun gives me 100 ), 
  38. the actual assigned priority depends on a scheduling policy.  Policies as 
  39. they exist now are static, normal distribution, and linear.  Static as the
  40. name implies assumes a predined non-dynamic priority assignment.  Normal 
  41. distribution tries to achieve what the name implies; the closer to the mean 
  42. period, the more tasks will have the same priority.  Linear tries to assign 
  43. the fewest tasks to the highest priority and the most tasks to the lowest 
  44. priority.  Non-periodic tasks are scheduled using some techniques for imprecise 
  45. algorithms and since this is long enough already, I'll provide references if 
  46. requested.
  47.     The area where wisdom is needed deals with the dynamic creation of tasks. 
  48. Since Ada tasking essential keeps the memory assigned to an access type
  49. task until termination of the task that has the access type defined, I am 
  50. forced to create a 'task-control-block' that keeps track of which tasks 
  51. are currently being used.  In addition, I have to try and reuse these 
  52. tasks for different 'procedural code'.  Any suggestions?
  53.     Also, when 'it is decided' to terminate a task ( done normally because it
  54. has passed it's deadline ), I need to reclaim the task-control-block and 
  55. be able to reuse it.  However, I am at a loss to come up with a good way to 
  56. insure it is in a known state.  Again, any suggestions?
  57.     I know this short note has left a lot of unanswered questions, but I 
  58. hope it is sufficent to give those of you wiser than I some idea of the 
  59. problem domain.  If you have any thoughts you would like to share on the 
  60. idea of dynamic task creation and control please do so.  It has been my 
  61. experience that half the solution to any problem is asking the right people 
  62. for ideas.
  63.  
  64.  
  65. Capt Mike Whelan
  66.  
  67. e-mail: mawhelan@afit.af.mil
  68.