硬实时,软实时和实时的差异?(Differences between hard real-time, soft real-time, and firm real-time?)
我已经阅读了实时的不同概念的定义,为硬和软的实时系统提供的例子对我来说是有意义的。 但是,实体系统并没有真正的解释或例子。 根据以上链接:
公司:偶然的期限错误是可以忍受的,但可能会降低系统的服务质量。 结果的有用性在其截止日期之后为零。
公司实时与硬实时或软实时之间有明确的区别,有没有一个很好的例子说明这个区别?
在评论中,Charles要求我为新标签提交标签维基。 我为企业实时标签提供的“公司实时系统”的例子是一个牛奶服务系统。 如果系统在其过期后提供牛奶,那么牛奶被认为是“无用的”。 人们可以忍受吃没有牛奶的谷物,但经验的质量会降低。
这只是我最初读取定义时我头脑中形成的想法。 我正在寻找一个更好的例子,也许是一个更好的企业实时定义,将改善我的观念。
I have read the definitions for the different notions of real-time, and the examples provided for hard and soft real-time systems make sense to me. But, there is no real explanation or example of a firm real-time system. According to the link above:
Firm: Infrequent deadline misses are tolerable, but may degrade the system's quality of service. The usefulness of a result is zero after its deadline.
Is there a clear distinction between firm real-time vs. hard or soft real-time, and is there a good example that illustrates that distinction?
In comments, Charles asked that I submit tag wikis for the new tags. The example of a "firm real-time system" I provided for the firm-real-time tag was a milk serving system. If the system delivers milk after its expiration time, then the milk is considered "not useful". One can tolerate eating cereal without milk, but the quality of the experience is degraded.
This is just the idea I formed in my head when I initially read the definition. I am looking for a much better example, and perhaps a better definition of firm real-time that will improve my notion of it.
原文:https://stackoverflow.com/questions/17308956
最满意答案
错字:
dependencies { classpath 'com.android.tools.build:gradle:2.2.0-alpha6' classpath 'com.google.gsm:google-services:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }
应该是“gms”而不是“gsm”:
classpath 'com.google.gms:google-services:3.0.0'
和
apply plugin: 'com.google.gms.google-services'
Typo in this:
dependencies { classpath 'com.android.tools.build:gradle:2.2.0-alpha6' classpath 'com.google.gsm:google-services:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }
Should be "gms" instead of "gsm":
classpath 'com.google.gms:google-services:3.0.0'
and
apply plugin: 'com.google.gms.google-services'
相关问答
更多-
找不到com.google.gsm:google-services:3.0.0(Could not find com.google.gsm:google-services:3.0.0)[2023-05-29]
错字: dependencies { classpath 'com.android.tools.build:gradle:2.2.0-alpha6' classpath 'com.google.gsm:google-services:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle file ... -
今天遇到同样的问题。 在示例中,他们使用这一行: classpath 'com.google.gms:google-services:1.3.0-beta1'这个工作。 I ran into the same issue today. In the samples they use this line instead: classpath 'com.google.gms:google-services:1.3.0-beta1' This works.
-
请在您的应用程序文件夹中添加google-services.json 。 Please add google-services.json in your app folder.
-
在app.gradle apply plugin: 'com.google.gms.google-services' 因为您已经完成了,所以在最后添加此行。 喜欢这个:- dependencies { } apply plugin: 'com.google.gms.google-services' in app.gradle apply plugin: 'com.google.gms.google-services' ADD THIS LINE AT THE E ...
-
看起来像打字错误。 尝试更改: classpath 'com.googlegle.gms:google-services:3.0.0' 至 classpath 'com.google.gms:google-services:3.0.0' Looks like a typing mistake. Try changing from: classpath 'com.googlegle.gms:google-services:3.0.0' to classpath 'com.google.gms:googl ...
-
首先你做错了它不能添加谷歌播放服务的方式。你需要先编译谷歌播放服务在项目级构建gradle像这样 buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.google.gms:google-services:3.0.0' // NOTE: ...
-
它与插件帮助管理依赖关系的方式以及Gradle用于构建项目的事件顺序有关。 如果你的项目中没有插件,插件实际上会添加对firebase-core的依赖。 它还会检查Firebase和Play服务依赖项的版本。 但是,为了使其能够在不与其他插件冲突的情况下完成所有这些操作,在已定义项目依赖项之后 ,Google Services插件必须针对项目运行。 因此,在依赖项块之后应用插件(通常位于文件的底部)可以实现所有这些。 重要的想法是,如果插件位于顶部,某些项目可能会遇到版本冲突问题。 您可以通过将其添加到底部 ...
-
把它放在你的项目gradle中 buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.1' classpath 'com.google.gms:google-services:3.0.0' // NOTE: Do not place your application dependencies here; they belong ...
-
这条线 compileSdkVersion 'Google Inc.:Google APIs:23' 应该读: compileSdkVersion 23 The line compileSdkVersion 'Google Inc.:Google APIs:23' should read: compileSdkVersion 23
-
更新您的类路径以指向最新的google-services版本 - 它应该是classpath 'com.google.gms:google-services:3.0.0' : buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.0' classpath 'com.google.gms:google-services:3.0 ...