Your application uses two threads, named threadOne and threa

题目
单选题
Your application uses two threads, named threadOne and threadTwo. You need to modify the code to prevent the execution of threadOne until threadTwo completes execution. What should you do?()
A

 Configure threadOne to run at a lower priority.

B

 Configure threadTwo to run at a higher priority.

C

 Use a WaitCallback delegate to synchronize the threads.

D

 Call the Sleep method of threadOne. 

E

 Call the SpinLock method of threadOne.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

What are two uses of the AS Path attribute?() (Choose two.)

A. route selection

B. loop avoidance

C. determining equal cost paths for reachablilty

D. defining the application of other BGP attributes


参考答案:A, B

第2题:

If you want to use the Java EE platform’s built-in type of authentication that uses a custom HTML page for authentication. Which two statements are true?()

  • A、Your deployment descriptor will need to contain this tag: CUSTOM.
  • B、The related custom HTML login page must be named loginPage.html.
  • C、When you use this type of authentication, SSL is turned on automatically.
  • D、You must have a tag in your deployment descriptor that allows you to point to both a login HTML pageand an HTML page for handling any login errors.
  • E、In the HTML related to authentication for this application, you must use predefined variable names fort he variables that store the user and password values.

正确答案:D,E

第3题:

You are writing an application that uses isolated storage to store user preferences.The application uses multiple assemblies.Multiple users will use this application on the same computer.You need to create a directory named Preferences in the isolated storage area that is scoped to the current Microsoft Windows identity and assembly.Which code segment should you use?()

A.

B.

C.

D.


参考答案:A

第4题:

You want to migrate an application that was developed for OAS/OC4J to WebLogic. The application uses Oracle Streams Advanced Queuing (AQ). You configured a Foreign JMS Server and Data Source but you are not able to send messages to the AQ destination and see them reach the database. Which two things are missing in this configuration?()

  • A、nothing, there may be a network connection issue
  • B、a Foreign JMS Connection Factory
  • C、a JMS Bridge to map the JNDI of the Local JMS Destination to the remote AQ destination
  • D、a mapping of the Foreign JMS Connection Factory to the Data Source where AQ is configured and installed
  • E、Oracle AQ Java EE Shared Libraries not deployed and referenced by your application

正确答案:C,E

第5题:

Which of the following best describes Simultaneous Multi-threading (SMT)?()

  • A、A POWER5 microprocessor feature that allocates two processors to each application
  • B、A Workload Manager feature that allows two processing threads to be executing on a single processor
  • C、An AIX v5.2 feature that allows two processing threads to be executing on a single processor concurrently
  • D、A POWER5 microprocessor feature that allows two processing threads to be executing on a single processor concurrently

正确答案:D

第6题:

You are the network administrator for Your network contains a single Active Directory domain named All network servers run Windows Server 2003.One of your application servers runs proprietary software. This server stops responding. After help desk technicians restart the server, it appears to run normally.Two weeks later, the same server stops responding again. You need to gather and store data to diagnose the problem.What should you do?()

A. Open Event Viewer and review the security logs on the server.

B. Create a System Monitor log that uses memory counters and gather data over time.

C. Open Task Manager and gather memory usage statistics.

D. Modify Boot.ini to use /maxmem:1536.


参考答案:B

第7题:

You are asked to configure real-time performance monitoring (RPM) between two Junos devices to track traffic in your network. Which two application traffic types can you track?()

  • A、ICMP
  • B、SNMP
  • C、TCP
  • D、HTTPS

正确答案:A,C

第8题:

You are writing an application that uses SOAP to exchange data with other applications.You use a Department class that inherits from ArrayList to send objects to another application.The Department object is named dept.You need to ensure that the application serializes the Department object for transport by using SOAP.Which code should you use?()

A.

B.

C.

D.


参考答案:D

第9题:

Which two statements are true?()

  • A、It is possible for more than two threads to deadlock at once.
  • B、The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
  • C、Deadlocked threads release once their sleep() method’s sleep duration has expired.
  • D、Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.
  • E、It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.
  • F、If a piece of code is capable of deadlocking, you cannot eliminate the possibility ofdeadlocking by insertinginvocations of Thread.yield().

正确答案:A,F

第10题:

You are a database administrator for your company. The company uses a vendor company’s application that is based on a proprietary database. You query data from the application database and import the data into a SQL Server 2005 database. The application vendor provides you with a new OLE DB driver to be used when querying the application database. Company policy prohibits connections between the SQL Server database and the application database, except when querying this data. You need to provide a way to query data from the application database. What should you?()

  • A、Configure a Linked Server connection to the application database.
  • B、Write a query that uses an OPENDATASOURCE command.
  • C、Write a query that uses an OPENQUERY command.
  • D、Configure a Remote Server connection to the application database.

正确答案:B

更多相关问题