• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint