2014/02/28

内核,操作系统最基本的部分,负责管理系统资源,一种软件;进程的权限,这个就像法令一样,规定好了进程所能够获取的数据,可以做规定的事情,不至于乱套,很好;应该可以反过来考虑,这些东西只能被xxx来执行,外来或未被允许的,若要强制执行可否向上级反馈该异常进程的意图,是否允许或强制终止!

线程,进程之下更小的模块,分为用户级线程和内核级线程,前者具有较高的灵活性和效率,后者胜在并行能力出色,即一个进程内的线程阻塞不会影响其它的线程,而前者就不同,用户级线程一旦发生阻塞就会影响同一进程中的其它线程。


进程的调度,个人理解就是通过对将要执行的任务进行判断或分类,然后选择合适的运行方式,或者是对众多将要执行的任务进行判断,合理安排,选择最佳最高效的运行模式。


看了在window、Linux等系统下对进程,线程的讲解,基本上是差不多,只是各有侧重,比如侧重于内核线程的window,有侧重于用户线程的Linux系统,也有折中的二者兼具的,但不管是哪种操作系统,进程或线程都是为执行程序而存在,其目的都是最大化的利用计算机的运算能力。


进程,线程,还是有许多没有看明白,虽然知道是为了提升工作效率,可仅知其然不知其所以然,明天继续。


刚刚写了一篇日志,花了一点时间,不过写出来后感觉心情大好!!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
情分析以下错误:Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"search-input"} Command duration or timeout: 3.97 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28' System info: host: 'LAPTOP-34K1M0P4', ip: '192.168.32.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_201' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=13.0.1, platform=XP, browserConnectionEnabled=true, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 450cd28c-219b-444e-a9ff-427428c704f0 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:573) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:326) at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:367) at org.openqa.selenium.By$ById.findElement(By.java:214) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:318) at shiyan2.crawler.main(crawler.java:18) Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Unable to locate element: {"method":"id","selector":"search-input"} Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28' System info: host: 'LAPTOP-34K1M0P4', ip: '192.168.32.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_201' Driver info: driver.version: unknown at <anonymous class>.<anonymous method>(file:///C:/Users/Y/AppData/Local/Temp/anonymous3190348505889140058webdriver-profile/extensions/[email protected]/components/driver_component.js:8904) at <anonymous class>.<anonymous method>(file:///C:/Users/Y/AppData/Local/Temp/anonymous3190348505889140058webdriver-profile/extensions/[email protected]/components/driver_component.js:8913) at <anonymous class>.<anonymous method>(file:///C:/Users/Y/AppData/Local/Temp/anonymous3190348505889140058webdriver-profile/extensions/[email protected]/components/command_processor.js:10878) at <anonymous class>.<anonymous method>(file:///C:/Users/Y/AppData/Local/Temp/anonymous3190348505889140058webdriver-profile/extensions/[email protected]/components/command_processor.js:10883) at <anonymous class>.<anonymous method>(file:///C:/Users/Y/AppData/Local/Temp/anonymous3190348505889140058webdriver-profile/extensions/[email protected]/components/command_processor.js:10825)
05-15

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值