From: SKeeper <alt-skeeper@yandex.ru> To: ALT Linux Community general discussions <community@lists.altlinux.org> Subject: Re: [Comm] зависания Date: Wed, 03 Sep 2008 12:20:29 +0400 Message-ID: <48BE48CD.8020402@yandex.ru> (raw) In-Reply-To: <48BE4536.7030402@nevod.ru> Дегтярёв Дмитрий пишет: > Если эти Ваши картинки не по 500Мб, то поможет. Т.е. позволит > запускать гораздо больше маленких картинок. Если картинки ну очень > большие и одну свернуть она полезет в своп, и развернуть минут через > 5, то увидите Вы эту картинку на экране не скоро. Ясно, спасибо. В целом так и думал. > Управляет памятью Операционная Система и ОС не знает о том что вообще > делает, сколько ему потребуется памяти и т.п.. Возложить на ОС данные > функции не возможно. Поэтому притензии к разработчикам приложения, мол > почему Ваше приложение перед загрузкой картинки не проверяет влезет ли > она в ОЗУ? Ну то что ОС управляет памятью - понятно. Но почему нельзя возложить данные функции на ось? Я не системный программист, но любопытствующий, если не сложно разъясните плиз. Вот я вижу схему работы с памятью следующим образом (с описываемым функционалом): Программа обращается к оси для выделения памяти. ОСь смотри на "карту" занятости памяти. Если программе не хватает памяти, то ось прибивает "обделенную" программу.
next prev parent reply other threads:[~2008-09-03 8:20 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-09-03 7:47 SKeeper 2008-09-03 8:05 ` Дегтярёв Дмитрий 2008-09-03 8:08 ` Дегтярёв Дмитрий 2008-09-03 8:20 ` SKeeper [this message] 2008-09-03 8:28 ` Alexei V. Mezin 2008-09-03 8:32 ` Anton Farygin 2008-09-03 19:01 ` Michael Shigorin 2008-09-15 11:14 ` Timur Batyrshin 2008-09-15 13:56 ` Michael Shigorin 2008-09-15 15:10 ` Timur Batyrshin 2008-09-15 15:31 ` Michael Shigorin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=48BE48CD.8020402@yandex.ru \ --to=alt-skeeper@yandex.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git