hercules task
第1题:
阅读以下说明和x86汇编语言代码,根据要求回答问题1至问题3。
【说明】
在某嵌入式安全监测系统中,对某任务的加工操作需通过数据采集(Collect_task)、计算(Calculate_task)这两个不同的程序段来完成,并且执行程序段Collect_task和Calculate _task的顺序及次数有如下约定:
Collect_task(2次)→Calculate_task(1次)→Collect_task(5次)→Calculate_task(4次)→Collect_task(2次)→Calculate_task(2次)
表6-22 所示为x86系统部分指令及寄存器说明。

采用逻辑尺控制法实现以上要求的汇编程序如下:
【汇编程序代码】
N EQU (1)
RULE EQU (2)
CODE SEGMENT
ASSUME CS:CODE
START: MOV AX,RULE
MOV CL,N
LOP: SAL AX,1
JC (3)
Collect: CALL Collect_task ;执行Collect_task程序段
JMP (4)
Calculate:CALL Calculate_task ;执行Calculate_task程序段
NEXT: (5)
JNZ (6)
MOV AH,4CH ;功能号送入AH寄存器
INT (7) ;结束程序运行,中断返回
(8)
END START
请根据试题的要求,将汇编程序代码中(1)~(8)空缺处的内容填写完整。
图6-25中阴影部分是程序段Collect_task执行的顺序和次数其余是程序段 Calculate task执行的顺序和次数。注意执行“Collect_task(2次)”中第1次执行的 Collect_task任务是放置在逻辑尺的最高位还是放置在逻辑尺的最低位由程序段中算术左移操作语句“SAL AX1”决定。将图6-25所示的逻辑尺的参数定义转换成等价的十六进制数0010 0000 1111 0011B=20F3H。因此(2)空缺处可填入“20F3H”或者是等价的二进制数“0010000011110011B”。
③程序中已给出代码(CODE)段定义伪指令“CODE SEGMENT”由于段定义伪指令的格式是:
段名>SEGMENT[定位方式][连接方式工类别名]
段名>ENDS
因此在模块结束伪指令“END START”之前需安排一条“CODE ENDS”即(8)空缺处需填入CODE段定义结束伪指令一“CODE ENDS”。
④由于程序段中已给出“功能号送入AH寄存器”及“中断返回”等关键信息由此可判断(7)空缺处需填入某一个中断类型码。由于软中断类型码通常取20H~27H其中系统功能调用的通用格式是:
功能号送入AH寄存器
INT 21H
语句“MOV AH4CH”中“4CH”就是相应的功能号因此(7)空缺处需填入“21H”。
⑤结合逻辑尺控制算法的设计思想和试题中给出的指令及寄存器说明表仔细分析试题的程序段先填写(3)、(4)、(6)空缺处的标号内容最后完成(5)空缺处循环计数减1操作(DEC CL)的推理。以下给出该程序段的每条语句的详细解析。
N EQU 14 ;定义循环的总次数
RULE EQU 183CH ;定义逻辑尺
CODE SEGMENT ;CODE段定义伪指令
ASSUME CS:CODE ;段寄存器说明伪指令
START: MOV AXRULE ;AX←逻辑尺标志
MOV CLN ;CL←循环的总次数
LOP: SAL AX1 ;算术左移操作CF←逻辑尺最高位
JC Calculate ;当CF=1时转至Calculate标号处
Collect: CALL Collect_task ;当CF=0时执行Collect_task程序段
JMP NEXT ;无条件转至NEXT标号处
Calculate:CALL Calculate_task ;执行Calculate_task程序段
NEXT: DEC CL ;循环计数CL←CL—1
JNZ LOP ;若CL≠0转至LOP标号处继续循环
MOV AH4CH ;若CL=0结束程序运行返回
INT 21H ;系统功能调用
CODE ENDS ;CODE段定义结束伪指令
END START ;模块结束伪指令
图6-25中,阴影部分是程序段Collect_task执行的顺序和次数,其余是程序段 Calculate task执行的顺序和次数。注意,执行“Collect_task(2次)”中第1次执行的 Collect_task任务是放置在逻辑尺的最高位,还是放置在逻辑尺的最低位,由程序段中算术左移操作语句“SAL AX,1”决定。将图6-25所示的逻辑尺的参数定义转换成等价的十六进制数,0010 0000 1111 0011B=20F3H。因此(2)空缺处可填入“20F3H”,或者是等价的二进制数“0010000011110011B”。
③程序中已给出代码(CODE)段定义伪指令“CODE SEGMENT”,由于段定义伪指令的格式是:
段名>SEGMENT[定位方式][连接方式工,类别名,]
段名>ENDS
因此在模块结束伪指令“END START”之前需安排一条“CODE ENDS”,即(8)空缺处需填入CODE段定义结束伪指令一“CODE ENDS”。
④由于程序段中已给出“功能号送入AH寄存器”及“中断返回”等关键信息,由此可判断(7)空缺处需填入某一个中断类型码。由于软中断类型码通常取20H~27H,其中系统功能调用的通用格式是:
功能号送入AH寄存器
INT 21H
语句“MOV AH,4CH”中“4CH”就是相应的功能号,因此(7)空缺处需填入“21H”。
⑤结合逻辑尺控制算法的设计思想和试题中给出的指令及寄存器说明表,仔细分析试题的程序段,先填写(3)、(4)、(6)空缺处的标号内容,最后完成(5)空缺处循环计数减1操作(DEC CL)的推理。以下给出该程序段的每条语句的详细解析。
N EQU 14 ;定义循环的总次数
RULE EQU 183CH ;定义逻辑尺
CODE SEGMENT ;CODE段定义伪指令
ASSUME CS:CODE ;段寄存器说明伪指令
START: MOV AX,RULE ;AX←逻辑尺标志
MOV CL,N ;CL←循环的总次数
LOP: SAL AX,1 ;算术左移操作,CF←逻辑尺最高位
JC Calculate ;当CF=1时,转至Calculate标号处
Collect: CALL Collect_task ;当CF=0时,执行Collect_task程序段
JMP NEXT ;无条件转至NEXT标号处
Calculate:CALL Calculate_task ;执行Calculate_task程序段
NEXT: DEC CL ;循环计数,CL←CL—1
JNZ LOP ;若CL≠0,转至LOP标号处,继续循环
MOV AH,4CH ;若CL=0,结束程序运行,返回
INT 21H ;系统功能调用
CODE ENDS ;CODE段定义结束伪指令
END START ;模块结束伪指令
第2题:
以下哪些不是rdd的特性()
第3题:
Which of the following reasons indicate why it is important to have the user demonstrate the task they are trying to perform?()
第4题:
在μCOS-II操作系统中,已知Task1的优先级为12,Task2的优先级为26。假如在Task2运行过程中发生键盘中断,在执行中断服务程序时Task1进入就绪状态,则中断返回时Task1得到CPU的使用权。
第5题:
The following parameter are set for your Oracle 12c database instance: OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES=FALSE OPTIMIZER_USE_SQL_PLAN_BASELINES=TRUE You want to manage the SQL plan evolution task manually. Examine the following steps: 1. Set the evolve task parameters. 2. Create the evolve task by using the DBMS_SPM.CREATE_EVOLVE_TASK function. 3. Implement the recommendations in the task by using the DBMS_SPM.IMPLEMENT_EVOLVE_TASK function. 4. Execute the evolve task by using the DBMS_SPM.EXECUTE_EVOLVE_TASK function. 5. Report the task outcome by using the DBMS_SPM.REPORT_EVOLVE_TASK function. Identify the correct sequence of steps:()
第6题:
Evaluate the following code: SQL>VARIABLE task_name VARCHAR2(255); SQL>VARIABLE sql_stmt VARCHAR2(4000); SQL>BEGIN :sql_stmt := ’SELECT COUNT(*) FROM customers WHERE cust_state_province =’’CA’’’; :task_name := ’MY_QUICKTUNE_TASK’; DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.SQLACCESS_ADVISOR, :task_name, :sql_stmt); END; What is the outcome of this block of code?()
第7题:
You create a new Automatic Database Diagnostic Monitor (ADDM) task: instance_analysis_mode_task. To view the ADDM report, you use the following command: SQL> SELECT dbms_addm.get_report(’my_instance_analysis_mode_task’) FROM dual; You want to suppress ADDM output relating to Segment Advisor actions on user SCOTT’s segments. What would you do to achieve this?()
第8题:
You use Windows 2000 Professional on your desktop Computer. You schedule a task to run an MMC snap-in to perform configuration tasks on other computers. You notice that the task is not completing correctly. You manually start MMC. You add the snap-in. You are then able to successfully run the task. You verify that all of your other tasks are working correctly. You want to enable your tasks to complete successfully. What should you do?()
第9题:
You are the administrator of a Windows 2000 Professional computer. You schedule a task to run after 15 minutes. One hour later, the task still has not run. You notice that your Event Viewer system log has the following error message; "The task scheduler service failed to start due to following error. The service did not start due to login failure." You want to run the scheduler task again. What should you do before restarting the task scheduler service?()
第10题:
However the task is hard
However hard the task is
Though hard the task is
Though hard is the task
第11题:
It creates a task and workload, and executes the task.
It creates a task and workload but does not execute the task.
It produces an error because a template has not been created.
It produces an error because the SQL Tuning Set has not been created.
第12题:
To help the technician learn how to perform the task
To determine if the user is performing the task properly
To determine if the user is authorized to perform the task
To help the technician determine if there is a better way to perform the task in question
第13题:
第14题:
spark中的persist算子的源码中具有哪些参数()
第15题:
You schedule a task to run after 15 minutes. After an hour, you check the Event Viewer system log. It contains the error message: "The Task Scheduler service failed to start". You want to run the scheduled task again. What should you do before restarting the Task Scheduler? ()
第16题:
Which of the following utilities, in Windows, can be configured to perform automatic disk defragmentation?()
第17题:
To view the results of a manual SQL Tuning Advisor task, which steps should the DBA take?()
第18题:
To view the results of a manual SQL Tuning Advisor task, which steps should the DBA take?()
第19题:
You use a Windows 2000 Professional computer to run a weekly accounts table. The report has the name ap_financial_reports. You also want to use the computer to run a task named perf_log to connect to network routers and retrieve their performance logs. When the ap_financial_reports is running on the computer, the perf_log task stops responding the eventually times out. When you run only the perf_log task, the task completes successfully. You use the task manager to view your system resources. You want to resolve the performance log time out problem by using task manager. What should you do?()
第20题:
You are a network administrator for ExamSheet.net's Windows 2000 network. You use a user account named User1 to log on tot a Windows 2000 Professional computer. The computer is used by different students in a classroom. User1 does not have administrative rights. However, you prefer to use this account for your daily activities. Using the Task Scheduler you schedule a task to run a command file named AddUsers.cmd that automatically adds six more student user accounts. You configure the task to run as the administrator account. After the task was scheduled to have run you open the Task Scheduler and discover a status of "Could not start" for the task. You also discover account logon failure audit events in the computer's Security log.You want the scheduled task to successfully run AddUsers.cmd. You want to accomplish this with the least amount of administrative effort. What should you do?()
第21题:
对
错
第22题:
2,4,5
2,1,4,3,5
1,2,3,4,5
1,2,4,5
第23题:
A template needs to be associated with the task.
A workload needs to be associated with the task.
The partial or complete workload scope needs to be associated with the task.
The type of structures (indexes, materialized views, or partitions) to be recommended need to be specified for the task.