该方法释放您先前创建的内存块,并使得从分配程序例程返回的所有指针失效。
It frees every memory block you created earlier and invalidates all the Pointers returned from the allocator routines.
与此类似,作为获得监视的一部分,当进入一个同步块时,本地缓存失效,使之后的读操作直接进入主内存而不是本地缓存。
Similarly, as part of acquiring the monitor when entering a synchronized block, local caches are invalidated so that subsequent reads will go directly to main memory and not the local cache.
以赛车为例,如果一名驾驶员在撞车后被送往医院,胶囊中带有的金属就会使核磁共振扫描失效,因为核磁共振仪最核心的装置是一块强磁铁。
In motor racing, for instance, if a driver is taken to hospital after a crash the metal in the capsule would prevent the use of an MRI scanner, which is essentially a powerful magnet.
应用推荐