ã¾ã¨ã: std::sync::RwLock::{write(), try_read()} ãä½µç¨ããå ´åã«ã¯ãæ¸ãè¾¼ã¿ããã¯ãæåªå ãã¨ããæåã¯å¿ ãããæå¾ ã§ããªã (Linuxã§ã¯NG) Pthread ã®è¦ç´ãæåã«èªç±åº¦ããããã¦ãããLinuxã«ãããããã©ã«ãå®è£ ã§ã¯ writer starvation ãçºçãã Rustã«ãã㦠writer starvation ãåé¿ãã¤ã¤ readers-writer lock ã使ãã«ã¯ parking_lot::RwLock ã使ãã¨è¯ã ç®æ¬¡ èæ¯: Readers-writer lock ã¨ã¯ï¼ èæ¯: Rustã«ããã readers-writer lock èæ¯: RwLock::write() 㨠RwLock::try_read() åç¾ã³ã¼ã åå åæ ä¿®æ£: parking_lot::RwLock ã使ã ããã
{{#tags}}- {{label}}
{{/tags}}