{"id":1236,"date":"2014-01-07T01:11:04","date_gmt":"2014-01-06T18:11:04","guid":{"rendered":"http:\/\/www.itersdesktop.com\/?p=1236"},"modified":"2014-02-26T01:02:06","modified_gmt":"2014-02-25T18:02:06","slug":"what-is-cache","status":"publish","type":"post","link":"https:\/\/www.itersdesktop.com\/vi\/2014\/01\/07\/what-is-cache\/","title":{"rendered":"Cache l\u00e0 g\u00ec?"},"content":{"rendered":"<p><\/p>\n<p style=\"text-align: justify;\">B\u1ea1n \u0111\u00e3 bao gi\u1edd t\u1eebng \u0111\u1eb7t c\u00e2u h\u1ecfi, \u0111\u1ea1i lo\u1ea1i nh\u01b0 &#8220;Cache l\u00e0 c\u00e1i g\u00ec? Ho\u1ea1t \u0111\u1ed9ng c\u1ee7a cache nh\u01b0 th\u1ebf n\u00e0o?&#8221;. Trong b\u00e0i vi\u1ebft n\u00e0y t\u00f4i mu\u1ed1n gi\u1edbi thi\u1ec7u m\u1ed9t thu\u1eadt ng\u1eef \u0111\u01b0\u1ee3c nh\u1eafc nhi\u1ec1u trong ho\u1ea1t \u0111\u1ed9ng m\u00e1y t\u00ednh n\u00f3i chung cache (t\u1ea1m d\u1ecbch l\u00e0 b\u1ed9 nh\u1edb \u1ea9n, b\u1ed9 nh\u1edb trung gian th\u1ee9 c\u1ea5p, b\u1ed9 nh\u1edb t\u1ed1c \u0111\u1ed9 cao). N\u1ebfu tra t\u1eeb cache trong m\u1ed9t cu\u1ed1n t\u1eeb \u0111i\u1ec3n Anh Vi\u1ec7t, b\u1ea1n s\u1ebd g\u1eb7p gi\u1ea3ng ngh\u0129a:<\/p>\n<pre>@cache \/k\u00e6\u0283\/\r\n* danh t\u1eeb\r\n- n\u01a1i gi\u1ea5u, n\u01a1i tr\u1eef (l\u01b0\u01a1ng th\u1ef1c, \u0111\u1ea1n d\u01b0\u1ee3c... nh\u1ea5t l\u00e0 c\u00e1c nh\u00e0 th\u00e1m hi\u1ec3m \u0111\u1ec3 d\u00f9ng sau n\u00e0y)\r\n=to make a cache+ x\u00e2y d\u1ef1ng n\u01a1i tr\u1eef\r\n- l\u01b0\u01a1ng th\u1ef1c, v\u1eadt d\u1ee5ng gi\u1ea5u k\u00edn\r\n- th\u1ee9c \u0103n d\u1ef1 tr\u1eef (c\u1ee7a \u0111\u1ed9ng v\u1eadt qua \u0111\u00f4ng)\r\n* ngo\u1ea1i \u0111\u1ed9ng t\u1eeb\r\n- gi\u1ea5u k\u00edn, tr\u1eef\r\n\r\n@cache\r\n- (Tech) b\u1ed9 nh\u1edb \u1ea9n, b\u1ed9 nh\u1edb \u1ea9n\/\u0111\u1ec7m cao t\u1ed1c = high-speed buffer memory ; gi\u1ea5u, tr\u1eef (\u0111)<\/pre>\n<p style=\"text-align: justify;\">\u0110\u1ebfn \u0111\u00e2y b\u1ea1n v\u1eabn ch\u01b0a hi\u1ec3u r\u00f5 nguy\u00ean t\u1eafc ho\u1ea1t \u0111\u1ed9ng c\u1ee7a b\u1ed9 nh\u1edb \u0111\u1ec7m cao t\u1ed1c l\u00e0 g\u00ec? L\u1ea5y m\u1ed9t v\u00ed d\u1ee5 d\u1ec5 hi\u1ec3u: Khi xem phim tr\u00ean Youtube, \u0111\u1ed1i v\u1edbi \u0111\u01b0\u1eddng truy\u1ec1n ch\u1eadm b\u1ea1n s\u1ebd nh\u1eadn th\u1ea5y c\u1ea3m gi\u00e1c kh\u00f3 ch\u1ecbu v\u00ec d\u1eef li\u1ec7u phim t\u1ea3i xu\u1ed1ng m\u00e1y t\u00ednh kh\u00f4ng li\u00ean t\u1ee5c, l\u00e0m cho phim b\u1ecb gi\u1eadt (\u0111\u1ee9t qu\u00e3ng). N\u1ebfu \u0111\u00e3 xem xong m\u1ed9t l\u01b0\u1ee3t (t\u1eeb \u0111\u1ea7u \u0111\u1ebfn cu\u1ed1i phim) v\u1edbi t\u1ed1c \u0111\u1ed9 \u0111\u00f3, b\u1ea1n th\u1eed xem l\u1ea1i m\u00e0 kh\u00f4ng ph\u1ea3i nh\u1ea5n Refresh trang web, t\u1ed1c \u0111\u1ed9 t\u1ea3i d\u1eef li\u1ec7u nhanh h\u01a1n r\u1ea5t nhi\u1ec1u v\u00e0 c\u00f3 th\u1ec3 phim s\u1ebd kh\u00f4ng b\u1ecb gi\u1eadt. \u0110i\u1ec1u n\u00e0y gi\u1ea3i th\u00edch l\u00e0: sau khi xem l\u01b0\u1ee3t th\u1ee9 1, d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c cache v\u00e0o m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n n\u00ean l\u1ea7n xem ti\u1ebfp theo, t\u1ed1c \u0111\u1ed9 n\u1ea1p phim s\u1ebd nhanh h\u01a1n. Th\u1ebf m\u1ed9t c\u00e2u h\u1ecfi \u0111\u1eb7t ra th\u00eam r\u1eb1ng &#8220;Thi\u1ebft b\u1ecb\/ph\u1ea7n m\u1ec1m n\u00e0o cache d\u1eef li\u1ec7u?&#8221;. Trong v\u00ed d\u1ee5 n\u00e0y, tr\u00ecnh duy\u1ec7t web \u0111\u00e3 th\u1ef1c hi\u1ec7n l\u01b0u l\u1ea1i ph\u1ea7n d\u1eef li\u1ec7u \u0111\u00e3 n\u1ea1p xu\u1ed1ng m\u00e1y t\u00ednh. N\u00f3i th\u00eam, d\u1eef li\u1ec7u trong cache s\u1ebd b\u1ecb x\u00f3a ho\u1eb7c khi tho\u00e1t tr\u00ecnh duy\u1ec7t ho\u1eb7c d\u00f9ng m\u1ed9t ph\u1ea7n m\u1ec1m d\u1ecdn d\u1eb9p r\u00e1c tr\u00ean m\u00e1y t\u00ednh nh\u01b0 CCleaner.<\/p>\n<p style=\"text-align: justify;\">Th\u1ebf nh\u01b0ng, th\u1ef1c t\u1ebf cache \u1ee9ng d\u1ee5ng nhi\u1ec1u trong thi\u1ebft k\u1ebf c\u1ea5u tr\u00fac c\u1ee7a CPU. C\u00e1c kh\u00e1i ni\u1ec7m li\u00ean quan khi n\u00f3i \u0111\u1ebfn c\u00e1c d\u00f2ng CPU ch\u1ea1y tr\u00ean m\u00e1y PC-Intel l\u00e0 Cache L1, Cache L2. Trong ng\u1eef c\u1ea3nh n\u00e0y, cache \u0111\u01b0\u1ee3c xem l\u00e0 b\u1ed9 nh\u1edb th\u1ee9 c\u1ea5p t\u1ea1m th\u1eddi, l\u00e0m t\u0103ng t\u1ed1c \u0111\u1ed9 t\u00ednh to\u00e1n v\u00e0 x\u1eed l\u00fd cho CPU. V\u00e0 nh\u01b0 th\u1ebf, n\u1ebfu m\u1ed9t m\u00e1y t\u00ednh v\u1edbi CPU c\u00f3 dung l\u01b0\u1ee3ng cache l\u1edbn th\u00ec t\u1ed1c \u0111\u1ed9 x\u1eed l\u00fd s\u1ebd nhanh h\u01a1n.<\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>B\u1ea1n \u0111\u00e3 bao gi\u1edd t\u1eebng \u0111\u1eb7t c\u00e2u h\u1ecfi, \u0111\u1ea1i lo\u1ea1i nh\u01b0 &#8220;Cache l\u00e0 c\u00e1i g\u00ec? Ho\u1ea1t \u0111\u1ed9ng c\u1ee7a cache nh\u01b0 th\u1ebf n\u00e0o?&#8221;. Trong b\u00e0i vi\u1ebft n\u00e0y t\u00f4i mu\u1ed1n gi\u1edbi thi\u1ec7u&hellip; <\/p>\n","protected":false},"author":2,"featured_media":1344,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[199,352],"tags":[386,385],"class_list":["post-1236","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-architecture","category-software-engineering","tag-cache-la-gi","tag-what-is-cache"],"_links":{"self":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/1236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/comments?post=1236"}],"version-history":[{"count":5,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/1236\/revisions"}],"predecessor-version":[{"id":1343,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/1236\/revisions\/1343"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/media\/1344"}],"wp:attachment":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/media?parent=1236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/categories?post=1236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/tags?post=1236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}