仿真操作系统实现LRU虚拟内存替换算法,已通过测试。
为了熟悉作业管理和虚页内存管理,了解作业及进程并发操作和虚页调度算法,并能够通过完成硬件结构的设计来实现进程并发、虚页调度、死锁检测等几大基本功能,我们选择了可视化仿真实现作业管理与虚页内存管理这一课题。
在学习相关知识之后,我们实现了裸机硬件的仿真、作业及进程调度的仿真、内存管理的仿真等功能,并通过可视化方式呈现。
裸机硬件的仿真包括CPU、内存Memory、硬盘Disk、时钟、中断和MMU地址变换部件等设计与实现。
其中CPU包含PC寄存器、PSW寄存器、IR寄存器等。
内存Memory大小为32KB,每个物理块大小512B,共64个物理块。
硬盘Disk大小为1MB,1个柱面中有32个磁道,1个磁道中有64个扇区,1个扇区为1个物理块,每个物理块的大小为512B。
MMU地址变换部件负责将逻辑地址转换为物理地址。
内存管理包括虚页内存的设计与实现、页表与快表的设计、内存替换算法等。
快表和页表的表项Page类,包含了页号、对应的块号和访问次数等信息。
快表FastTable和页表PageTable,实现了插入表项、判断是否命中、返回物理块号等功能。
LRU页面替换算法是在MMU地址变换部件中实现的,淘汰最近最长时间没有访问到的页面。
1
该文档主要是elasticsearch7.x版本的安装及集群配置,配合head,ik插件的安装。
【备注,配置参数更新如下:cluster.name:es-7node.name:t-1network.host:10.96.141.45http.port:9200transport.tcp.port:9301node.master:truenode.data:truebootstrap.memory_lock:truediscovery.seed_hosts:["10.xx.xx.104:9300","10.xx.xx.45:9300","10.xx.xx.45:9301"]discovery.zen.minimum_master_nodes:2bootstrap.system_call_filter:falsecluster.initial_master_nodes:["10.xx.xx104","10.xx.xx.45"]#外网访问http.cors.enabled:truehttp.cors.allow-origin:"*"】
2024/6/22 13:01:09 7KB elasticsearch 集群
1
WelcometoLongShort-TermMemoryNetworksWithPython.LongShort-TermMemory(LSTM)recurrentneuralnetworksareoneofthemostinterestingtypesofdeeplearningatthemoment.Theyhavebeenusedtodemonstrateworld-classresultsincomplexproblemdomainssuchaslanguagetranslation,automaticimagecaptioning,andtextgeneration.LSTMsareverydi↵erenttootherdeeplearningtechniques,suchasMultilayerPerceptrons(MLPs)andConvolutionalNeuralNetworks(CNNs),inthattheyaredesignedspecificallyforsequencepredictionproblems.IdesignedthisbookforyoutorapidlydiscoverwhatLSTMsare,howtheywork,andhowyoucanbringthisimportanttechnologytoyourownsequencepredictionproblems.
2024/6/10 13:38:01 6.77MB machine lear mastery python
1
SpikingNeuronModels:Neuronsinthebraincommunicatebyshortelectricalpulses,theso-calledactionpotentialsorspikes.Howcanweunderstandtheprocessofspikegeneration?Howcanweunderstandinformationtransmissionbyneurons?Whathappensifthousandsofneuronsarecoupledtogetherinaseeminglyrandomnetwork?Howdoesthenetworkconnectivitydeterminetheactivitypatterns?And,viceversa,howdoesthespikeactivityinfluencetheconnectivitypattern?Thesequestionsareaddressedinthisintroductorytextaimedatthosetakingcoursesincomputationalneuroscience,theoreticalbiology,neuronalmodeling,biophysics,orneuralnetworks.Theauthorsfocusonphenomenologicalapproachessothatbeginnerscangettogripswiththetheoreticalconceptsbeforeconfrontingthewealthofdetailinbiologicalsystems.ThebookisinthreePartsdealing,inorder,withneuronsandconnections,collectivebehaviorinnetworks,andsynapticplasticityanditsroleinlearning,memory,anddevelopment.Eachchapterendswithaliteraturesurvey,andacomprehensivebibliographyisincluded.Assuchthebookwillalsointroducereaderstocurrentresearch.
2024/3/8 23:49:57 4.93MB Spiking Neuron Models
1
GettogripswithmodernsoftwaredemandsbylearningtheeffectiveusesofRust'spowerfulmemorysafety.KeyFeaturesLearnandimprovethesequentialperformancecharacteristicsofyoursoftwareUnderstandtheuseofoperatingsystemprocessesinahigh-scaleconcurrentsystemLearnofthevariouscoordinationmethodsavailableintheStandardlibraryBookDescriptionMostprogramminglanguagescanreallycomplicatethings,especiallywithregardtounsafememoryaccess.Theburdenonyou,theprogrammer,liesacrosstwodomains:understandingthemodernmachineandyourlanguage'spain-points.Thisbookwillteachyoutohowtomanageprogramperformanceonmodernmachinesandbuildfast,memory-safe,andconcurrentsoftwareinRust.ItstartswiththefundamentalsofRustanddiscussesmachinearchitectureconcepts.YouwillbetakenthroughwaystomeasureandimprovetheperformanceofRustcodesystematicallyandhowtowritecollectionswithconfidence.YouwilllearnabouttheSyncandSendtraitsappliedtothreads,andcoordinatethreadexecutionwithlocks,atomicprimitives,data-parallelism,andmore.ThebookwillshowyouhowtoefficientlyembedRustinC++codeandexplorethefunctionalitiesofvariouscratesformultithreadedapplications.Itexploresimplementationsindepth.Youwillknowhowamutexworksandbuildseveralyourself.Youwillmasterradicallydifferentapproachesthatexistintheecosystemforstructuringandmanaginghigh-scalesystems.Bytheendofthebook,youwillfeelcomfortablewithdesigningsafe,consistent,parallel,andhigh-performanceapplicationsinRust.WhatyouwilllearnProbeyourprogramsforperformanceandaccuracyissuesCreateyourownthreadingandmulti-processingenvironmentinRustUsecoarselocksfromRust’sStandardlibrarySolvecommonsynchronizationproblemsoravoidsynchronizationusingatomicprogrammingBuildlock-free/wait-freestructuresinRustandunderstandtheirimplementat
2024/2/28 3:43:03 1.9MB rust concurrency 并发 rust语言
1
Theacceleratingdeploymentoflarge-scaleweb,cloud,BigData,andvirtualizedcomputingsystemshasintroducedseriousnewchallengesinperformanceoptimization.Untilnow,however,littlereliable,practicalinformationhasbeenavailabletoITprofessionalswhoareresponsibleforrunningthesesystemsefficientlyandcost-effectively.SystemsPerformance:EnterpriseandtheCloudisthesolution.InternationallyrenownedperformanceoptimizationexpertBrendanGreggbringstogetherstate-of-the-arttechniquesandtoolsforanalysisandtuningoflarge-scaleweb/cloudcomputingenvironments.GreggfocusesonLinux/Unix/Solarisperformanceissues,whileofferingprovenmethodologiesanddiscussingkeyissuesthatapplytoallenterpriseoperatingsystems.Coverageincludes:Modernperformanceanalysisandcapacityplanning,includingkeyissuessuchaslatencyanddynamictracingNewperformanceandreliabilitychallengesassociatedwithcloudcomputingMethodology,concepts,terminology,tools,andmetricsKeytradeoffs,includingproblemsofloadvs.architectureTuningoperatingsystems,CPUs,memory,filesystems,disks,networks,andbussesTuningvirtualizedsystemsProgramminglanguageissuesrelatedtoperformance—includingapplicationprofilingforC,C++,Java,andnode.jsBenchmarkingstrategiesandpitfalls,includingcustommicrobenchmarking
2024/2/19 0:21:35 22.56MB Systems Performance
1
线上游戏仍在开发中。
为了运行游戏,您应该:pipenv安装pipenv外壳python3./memory_game/manage.pyrunserver享受:)
2024/1/16 10:26:05 2.74MB JavaScript
1
qt版本5.14.2编译zlib-1.2.11quazip-0.7.3;
zlib是通用的压缩库,提供了一套in-memory压缩和解压函数,并能检测解压出来的数据的完整性(integrity)。
zlib也支持读写gzip(.gz)格式的文件;Quazip是Qt平台下面的一个非常受欢迎的压缩解压缩库
2023/12/21 8:42:15 1.55MB quazip zlib
1
简单沙箱一个带有Node.jsAPI的简单Linux沙箱。
由SYZOJ使用。
先决条件配套您需要在系统中安装build-essentials(g++,make等)和fmt库才能构建C++部分。
所需的最低g++版本是g++-8。
建议使用支持C++17文件系统的较新版本的clang++。
安装它们的方式(在Ubuntu18.04中):aptinstallbuild-essentialclang++-9libfmt-dev核心您需要在内核中启用内存交换帐户(在Debian8中默认为禁用)。
您可以通过检查是否存在/sys/fs/cgroup/memory/memory.memsw.usage_in_bytes来验证这/sys/fs/cgroup/memory/memory.memsw.usage_in_bytes如果该文件不存在,则可能
2023/9/14 12:31:22 41KB C++
1
简单易懂,容易操作,lab代码简单,老师编写的源代码
2023/7/13 22:43:41 654KB 翻牌 记忆 代码源
1
共 20 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡