You should use when reading and writing from things that chan change in the application scope. For example:
<cfquery name="application.myData">
select * from myTable
</cfquery>
You are going to want to lock that with type="exclusive". Wherever application.myData is used, you need a type="readonly" lock. The exception is Application.cfc's OnApplicationStart method, which locks itself. Likewise use the same strategy with the session and server scopes.
Named locks give you more control over your locking strategy. Use a named cflock when you need to lock commands dynamically. For example:
<cflock name="write_file_#session.user_type#" type="exclusive">
<cffile action="write" name="file_#session.user_type#" output="#content#" />
</cflock>
In this example, users of different types are allowed to write a file at the same time, but users with the same *session.user_type* must wait for each other. This cflock helps avoid file contention issues.
Another reason to use a named lock is if you do not know the scope of your current operation. If you are in an instantiated cfc, how do you know what scope you were instantiated into? Variables? Session? Application? Good encapsulation teaches us that objects do not know anything except what they have been told. Inside a CFC, use a named lock and name it after the CFC, or the CFC and a unique instance variable depending on your use case.