Summary


Locking is an essential element to any production application. Locking is implemented using the <cflock> tag. The name and scope attributes are mutually exclusive and have various pros and cons. Deadlocks can occur if the locks are nested and not locked in a specific order.

Sample Questions

1:

Choose the legal <cflock> statement.

  1. <cflock timeout="16">

  2. <cflock name="myLock" scope="session" timeout="16">

  3. <cflock scope="myLock" timeout="16" type="readonly">

  4. <cflock name="myLock" timeout="16">

2:

Which variable scopes should be locked to ensure controlled access? (select all that apply)

  1. REQUEST

  2. CLIENT

  3. SESSION

  4. APPLICATION

  5. SERVER

3:

When can deadlocks occur? (select two)

  1. When locks are nested

  2. When locks are in a different order on different pages

  3. When locks wait for each other and are not nested

  4. When readonly locks are declared against the CLIENT scope



Macromedia ColdFusion MX 7 Certified Developer Study Guide
Macromedia ColdFusion MX 7 Certified Developer Study Guide
ISBN: 0321330110
EAN: 2147483647
Year: 2004
Pages: 389
Authors: Ben Forta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net