The term frocking dates back to the Age of Sail, when communications between the Department of the Navy and ships at sea could take months.
In the intervening time, the officer recommended for promotion would be accorded the privileges and authorities of his "new" rank, but would not receive the pay for it, since it was not yet official.
According to current Department of Defense policy, there is no limit to the number of two-, three-, and four-star generals (or admirals) who may be frocked at any one time.
For all other officers frocking is normally reserved for joint, international, or other high-visibility positions that require the higher rank for diplomatic, protocol, or command authority reasons.
For frocking to occur in the Air Force, an unusual set of circumstances must be present to justify wearing the higher rank before the promotion becomes effective.