How high up a structure should you name your locks?

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default How high up a structure should you name your locks?

    This is another one of those late night "locking - do i need them?" questions:-

    I use application variables extensively - based on userids

    e.g. application["user"]["u#userid#"]["LastAccess"]

    When I want to change the LastAccess I normally use a named lock -
    name="u#userid#"

    Should I be calling the lock "user" or given that userids are unique and the
    chance of a user managing to corrupt their application variables is remote - do
    i even need the lock?

    Good answers greatly appreciated.

    PaulKD Guest

  2. Similar Questions and Discussions

    1. Class::Struct - want to access structure within structure
      I want to access a structure within a structure. Below is what I had in mind. Please help. #!/perl/bin/perl use Class::Struct; struct Step...
    2. High run queue, high idle cpu percentage
      Hey - I have a werid situation: vmstat shows high r (always r>0, sometimes r>10), but id > 90%. The rest of the values are nominal. Any...
    3. DW MX Locks Up
      What's the size of your image folder? "juane moore" <webforumsuser@macromedia.com> wrote in message news:bfoiq8$he$1@forums.macromedia.com......
    4. "get snapshot for locks" memory structure
      On Wed, 23 Jul 2003 09:09:37 -0700, Bruce Pullen wrote: No, UTIL_HEAP_SZ is for things like backups, reorgs and other utilities. The area used...
    5. Too many Locks
      Hi, I'm having a major decrease in performance, and I'm wondering if the number of spin locks are contributing to this. Enviroment Informix...
  3. #2

    Default Re: How high up a structure should you name your locks?

    > This is another one of those late night "locking - do i need them?" questions:-

    The most common answer these days is "no".

    Read this:
    [url]http://www.houseoffusion.com/cf_lists/index.cfm/method=reply&forumid=4&threadid=39328&messagecount er=201028[/url]

    > I use application variables extensively - based on userids
    > e.g. application["user"]["u#userid#"]["LastAccess"]
    > When I want to change the LastAccess I normally use a named lock -
    > name="u#userid#"
    application["user"]["u#userid#"]["LastAccess"] = now(); // is this what you
    mean?

    If you're using CFMX or above, you don't need to lock that. Java does it
    under the hood for you.

    --

    Adam
    Adam Cameron Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139