Skip to content

Commit f0c17d5

Browse files
Dining Philosophers Problem Algorithm
1 parent 6cc7c2f commit f0c17d5

File tree

8 files changed

+666
-0
lines changed

8 files changed

+666
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,250 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = "1";
4+
objectVersion = "46";
5+
objects = {
6+
OBJ_1 = {
7+
isa = "PBXProject";
8+
attributes = {
9+
LastUpgradeCheck = "9999";
10+
};
11+
buildConfigurationList = OBJ_2;
12+
compatibilityVersion = "Xcode 3.2";
13+
developmentRegion = "English";
14+
hasScannedForEncodings = "0";
15+
knownRegions = (
16+
"en",
17+
);
18+
mainGroup = OBJ_5;
19+
productRefGroup = OBJ_11;
20+
projectDirPath = ".";
21+
targets = (
22+
OBJ_13,
23+
);
24+
};
25+
OBJ_10 = {
26+
isa = "PBXGroup";
27+
children = (
28+
);
29+
path = "Tests";
30+
sourceTree = "<group>";
31+
};
32+
OBJ_11 = {
33+
isa = "PBXGroup";
34+
children = (
35+
OBJ_12,
36+
);
37+
name = "Products";
38+
path = "";
39+
sourceTree = "BUILT_PRODUCTS_DIR";
40+
};
41+
OBJ_12 = {
42+
isa = "PBXFileReference";
43+
path = "DiningPhilosophers";
44+
sourceTree = "BUILT_PRODUCTS_DIR";
45+
};
46+
OBJ_13 = {
47+
isa = "PBXNativeTarget";
48+
buildConfigurationList = OBJ_14;
49+
buildPhases = (
50+
OBJ_17,
51+
OBJ_19,
52+
);
53+
dependencies = (
54+
);
55+
name = "DiningPhilosophers";
56+
productName = "DiningPhilosophers";
57+
productReference = OBJ_12;
58+
productType = "com.apple.product-type.tool";
59+
};
60+
OBJ_14 = {
61+
isa = "XCConfigurationList";
62+
buildConfigurations = (
63+
OBJ_15,
64+
OBJ_16,
65+
);
66+
defaultConfigurationIsVisible = "0";
67+
defaultConfigurationName = "Debug";
68+
};
69+
OBJ_15 = {
70+
isa = "XCBuildConfiguration";
71+
buildSettings = {
72+
FRAMEWORK_SEARCH_PATHS = (
73+
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
74+
);
75+
HEADER_SEARCH_PATHS = (
76+
);
77+
INFOPLIST_FILE = "DiningPhilosophers.xcodeproj/DiningPhilosophers_Info.plist";
78+
LD_RUNPATH_SEARCH_PATHS = (
79+
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
80+
"@executable_path",
81+
);
82+
OTHER_LDFLAGS = (
83+
"$(inherited)",
84+
);
85+
OTHER_SWIFT_FLAGS = (
86+
"$(inherited)",
87+
);
88+
SUPPORTED_PLATFORMS = (
89+
"macosx",
90+
);
91+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "SWIFT_PACKAGE";
92+
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = "YES";
93+
SWIFT_FORCE_STATIC_LINK_STDLIB = "NO";
94+
SWIFT_VERSION = "3.0";
95+
TARGET_NAME = "DiningPhilosophers";
96+
};
97+
name = "Debug";
98+
};
99+
OBJ_16 = {
100+
isa = "XCBuildConfiguration";
101+
buildSettings = {
102+
FRAMEWORK_SEARCH_PATHS = (
103+
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
104+
);
105+
HEADER_SEARCH_PATHS = (
106+
);
107+
INFOPLIST_FILE = "DiningPhilosophers.xcodeproj/DiningPhilosophers_Info.plist";
108+
LD_RUNPATH_SEARCH_PATHS = (
109+
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
110+
"@executable_path",
111+
);
112+
OTHER_LDFLAGS = (
113+
"$(inherited)",
114+
);
115+
OTHER_SWIFT_FLAGS = (
116+
"$(inherited)",
117+
);
118+
SUPPORTED_PLATFORMS = (
119+
"macosx",
120+
);
121+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "SWIFT_PACKAGE";
122+
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = "YES";
123+
SWIFT_FORCE_STATIC_LINK_STDLIB = "NO";
124+
SWIFT_VERSION = "3.0";
125+
TARGET_NAME = "DiningPhilosophers";
126+
};
127+
name = "Release";
128+
};
129+
OBJ_17 = {
130+
isa = "PBXSourcesBuildPhase";
131+
files = (
132+
OBJ_18,
133+
);
134+
};
135+
OBJ_18 = {
136+
isa = "PBXBuildFile";
137+
fileRef = OBJ_9;
138+
};
139+
OBJ_19 = {
140+
isa = "PBXFrameworksBuildPhase";
141+
files = (
142+
);
143+
};
144+
OBJ_2 = {
145+
isa = "XCConfigurationList";
146+
buildConfigurations = (
147+
OBJ_3,
148+
OBJ_4,
149+
);
150+
defaultConfigurationIsVisible = "0";
151+
defaultConfigurationName = "Debug";
152+
};
153+
OBJ_3 = {
154+
isa = "XCBuildConfiguration";
155+
buildSettings = {
156+
COMBINE_HIDPI_IMAGES = "YES";
157+
COPY_PHASE_STRIP = "NO";
158+
DEBUG_INFORMATION_FORMAT = "dwarf";
159+
DYLIB_INSTALL_NAME_BASE = "@rpath";
160+
ENABLE_NS_ASSERTIONS = "YES";
161+
GCC_OPTIMIZATION_LEVEL = "0";
162+
MACOSX_DEPLOYMENT_TARGET = "10.10";
163+
ONLY_ACTIVE_ARCH = "YES";
164+
OTHER_SWIFT_FLAGS = (
165+
"-DXcode",
166+
);
167+
PRODUCT_NAME = "$(TARGET_NAME)";
168+
SUPPORTED_PLATFORMS = (
169+
"macosx",
170+
"iphoneos",
171+
"iphonesimulator",
172+
"appletvos",
173+
"appletvsimulator",
174+
"watchos",
175+
"watchsimulator",
176+
);
177+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
178+
USE_HEADERMAP = "NO";
179+
};
180+
name = "Debug";
181+
};
182+
OBJ_4 = {
183+
isa = "XCBuildConfiguration";
184+
buildSettings = {
185+
COMBINE_HIDPI_IMAGES = "YES";
186+
COPY_PHASE_STRIP = "YES";
187+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
188+
DYLIB_INSTALL_NAME_BASE = "@rpath";
189+
GCC_OPTIMIZATION_LEVEL = "s";
190+
MACOSX_DEPLOYMENT_TARGET = "10.10";
191+
OTHER_SWIFT_FLAGS = (
192+
"-DXcode",
193+
);
194+
PRODUCT_NAME = "$(TARGET_NAME)";
195+
SUPPORTED_PLATFORMS = (
196+
"macosx",
197+
"iphoneos",
198+
"iphonesimulator",
199+
"appletvos",
200+
"appletvsimulator",
201+
"watchos",
202+
"watchsimulator",
203+
);
204+
SWIFT_OPTIMIZATION_LEVEL = "-O";
205+
USE_HEADERMAP = "NO";
206+
};
207+
name = "Release";
208+
};
209+
OBJ_5 = {
210+
isa = "PBXGroup";
211+
children = (
212+
OBJ_6,
213+
OBJ_7,
214+
OBJ_10,
215+
OBJ_11,
216+
);
217+
path = "";
218+
sourceTree = "<group>";
219+
};
220+
OBJ_6 = {
221+
isa = "PBXFileReference";
222+
explicitFileType = "sourcecode.swift";
223+
path = "Package.swift";
224+
sourceTree = "<group>";
225+
};
226+
OBJ_7 = {
227+
isa = "PBXGroup";
228+
children = (
229+
OBJ_8,
230+
);
231+
path = "Sources";
232+
sourceTree = "<group>";
233+
};
234+
OBJ_8 = {
235+
isa = "PBXGroup";
236+
children = (
237+
OBJ_9,
238+
);
239+
name = "DiningPhilosophers";
240+
path = "Sources";
241+
sourceTree = "SOURCE_ROOT";
242+
};
243+
OBJ_9 = {
244+
isa = "PBXFileReference";
245+
path = "main.swift";
246+
sourceTree = "<group>";
247+
};
248+
};
249+
rootObject = OBJ_1;
250+
}

DiningPhilosophers/DiningPhilosophers.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "9999"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "OBJ_13"
18+
BuildableName = "DiningPhilosophers"
19+
BlueprintName = "DiningPhilosophers"
20+
ReferencedContainer = "container:DiningPhilosophers.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<AdditionalOptions>
33+
</AdditionalOptions>
34+
</TestAction>
35+
<LaunchAction
36+
buildConfiguration = "Debug"
37+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
38+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
39+
launchStyle = "0"
40+
useCustomWorkingDirectory = "NO"
41+
ignoresPersistentStateOnLaunch = "NO"
42+
debugDocumentVersioning = "YES"
43+
debugServiceExtension = "internal"
44+
allowLocationSimulation = "YES">
45+
<MacroExpansion>
46+
<BuildableReference
47+
BuildableIdentifier = "primary"
48+
BlueprintIdentifier = "OBJ_13"
49+
BuildableName = "DiningPhilosophers"
50+
BlueprintName = "DiningPhilosophers"
51+
ReferencedContainer = "container:DiningPhilosophers.xcodeproj">
52+
</BuildableReference>
53+
</MacroExpansion>
54+
<AdditionalOptions>
55+
</AdditionalOptions>
56+
</LaunchAction>
57+
<ProfileAction
58+
buildConfiguration = "Release"
59+
shouldUseLaunchSchemeArgsEnv = "YES"
60+
savedToolIdentifier = ""
61+
useCustomWorkingDirectory = "NO"
62+
debugDocumentVersioning = "YES">
63+
</ProfileAction>
64+
<AnalyzeAction
65+
buildConfiguration = "Debug">
66+
</AnalyzeAction>
67+
<ArchiveAction
68+
buildConfiguration = "Release"
69+
revealArchiveInOrganizer = "YES">
70+
</ArchiveAction>
71+
</Scheme>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>SchemeUserState</key>
5+
<dict>
6+
<key>DiningPhilosophers.xcscheme</key>
7+
<dict></dict>
8+
</dict>
9+
<key>SuppressBuildableAutocreation</key>
10+
<dict></dict>
11+
</dict>
12+
</plist>

0 commit comments

Comments
 (0)